Using the Default Credentials Provider Chain
You can configure the connector to authenticate the connection using credentials that are stored in one of the locations in the default credentials provider chain. The connector looks for a valid access key and secret key pair by checking the following locations, in the following order:
- The AWS credentials file stored in the
~/.aws/credentials
directory. - The AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY system environment variables.
- The instance profile from the Amazon EC2 Instance Metadata Service.
For detailed information about configuring default credentials, see "Providing AWS Credentials" in the AWS SDK for C++ Developer Guide: http://docs.aws.amazon.com/sdk-for-cpp/v1/developer-guide/credentials.html.
To configure authentication using the default credentials provider chain:
- Set the
AuthenticationType
property toDefault Credentials
.
- Security and Authentication
- Authentication Driver Configuration Options
- Configuring Authentication