aws / aws-sigv4-auth-cassandra-java-driver-plugin

A SigV4 authentication plugin for the open-source DataStax Java Driver for Apache Cassandra. Allows use of AWS IAM users and roles for direct authentication.
Apache License 2.0
13 stars 14 forks source link

default behavior for configuration #18

Closed michaelraney closed 2 years ago

michaelraney commented 3 years ago

When specifying the sigv4 authentication via the configuration file results in exception if the region name is not provided. This is a different default behavior than the programmatic instantiation. The following change will attempt to read the aws region from the environment variables/aws sdk configuration if no region is specified.

Description of changes: passes null if region is not found in the configuration new test using configuration

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

michaelraney commented 3 years ago

Resolved indentation and exception text