When connecting to EventStore Cloud in AWS I get this exception while using the projection management client to list the projections. (The app starts by checking the projections, so I haven’t yet tested if it’s able to connect with the other client for adding events):
Unhandled exception. EventStore.Client.AccessDeniedException: Status(StatusCode="PermissionDenied", Detail="Access Denied")
---> Grpc.Core.RpcException: Status(StatusCode="PermissionDenied", Detail="Access Denied")
Here is the connection string I’m using (obtained from the ES Cloud control panel for Grpc connections):
esdb://c5alb55o0aem0po049fg.mesdb.eventstore.cloud:2113
Here is the code that creates the connection:
.ConfigureServices(services =>
{
services.AddEventStoreClient(ConfigureEventStoreSettings);
services.AddEventStoreProjectionManagementClient(ConfigureEventStoreSettings);
void ConfigureEventStoreSettings(EventStoreClientSettings settings)
{
settings.ConnectivitySettings = EventStoreClientSettings.Create(eventStoreOptions.ConnectionString).ConnectivitySettings;
settings.OperationOptions.ThrowOnAppendFailure = true;
if (Debugger.IsAttached)
settings.OperationOptions.TimeoutAfter = TimeSpan.FromMinutes(9999);
}
});
I guess I’ve not configured username/password correctly? I was not able to find any information in the control panel regarding this or an access key however.
Thanks in advance for any suggestions.