I am unable to connect to AWS Keyspaces using .NET Core due to an authentication error:
AuthenticationException 'Provided username nick and/or password are incorrect')
I am not sure what values I should give to PlainTextAuthProvider
.
I have tried using:
- My AWS Console credentials
- AWS access key / secret key pair
How do I generate credentials for AWS Keyspaces?
My code, in case it is relevant:
open System
open Cassandra
[<EntryPoint>]
let main argv =
async {
let cluster =
Cluster.Builder()
.AddContactPoints("cassandra.eu-west-2.amazonaws.com")
.WithPort(9142)
.WithAuthProvider(PlainTextAuthProvider ("username", "password123"))
.WithSSL()
.Build()
use! session =
cluster.ConnectAsync ()
|> Async.AwaitTask
()
}
|> Async.RunSynchronously
0