Closed frosforever closed 9 years ago
DefaultAWSCredentialsProviderChain chains together multiple default credentials providers and matches on the first to succeed. This way, machines that have the aws-cli set up, as well as EC2 instances will have their credentials loaded.
DefaultAWSCredentialsProviderChain
aws-cli
From the aws javadocs:
AWS credentials provider chain that looks for credentials in this order: Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY Java System Properties - aws.accessKeyId and aws.secretKey Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI Instance profile credentials delivered through the Amazon EC2 metadata service
AWS credentials provider chain that looks for credentials in this order:
This is a useful change; thanks for your contribution!
DefaultAWSCredentialsProviderChain
chains together multiple default credentials providers and matches on the first to succeed. This way, machines that have theaws-cli
set up, as well as EC2 instances will have their credentials loaded.From the aws javadocs: