scylladb / scylla-migrator

Migrate data extract using Spark to Scylla, normally from Cassandra
Apache License 2.0
54 stars 34 forks source link

DynamoDB: credentials shouldn't be optional (both for DynamoDB and Alternator) #68

Open tarzanek opened 2 years ago

tarzanek commented 2 years ago

If you don't provide at least fake credentials, you will get:

Caused by: com.amazonaws.SdkClientException: Unable to load AWS credentials from any provider in the chain: [EnvironmentVariableCredentialsProvider: Unable to load AWS credentials from environment variables (AWS_ACCESS_KEY_ID (or AWS_ACCESS_KEY) and AWS_SECRET_KEY (or AWS_SECRET_ACCESS_KEY)), SystemPropertiesCredentialsProvider: Unable to load AWS credentials from Java system properties (aws.accessKeyId and aws.secretKey), WebIdentityTokenCredentialsProvider: You must specify a value for roleArn and roleSessionName, com.amazonaws.auth.profile.ProfileCredentialsProvider@78bd02c8: profile file cannot be null, com.amazonaws.auth.EC2ContainerCredentialsProviderWrapper@2c15034f: Failed to connect to service endpoint: ]                                                                                                                                                                                     

so we should make credentials mandatory