See: Description
Class | Description |
---|---|
ProfileCredentialsProvider |
Credentials provider based on AWS configuration profiles.
|
ProfilesConfigFile |
Loads the local AWS configuration profiles from the standard location
(~/.aws/config), which can be easily overridden through the
AWS_CONFIG_FILE environment variable or by specifying an
alternate config file location through this class' constructor. |
In addition to the required default
profile, you can specify as
many additional named profiles as you need:
[default] aws_access_key_id=AKIAXXXXXXXXXX aws_secret_access_key=abc01234567890 [profile test] aws_access_key_id=AKIAZZZZZZZZZZ aws_secret_access_key=xyz01234567890
You can use ProfileCredentialsProvider
to
access your AWS configuration profiles and supply your credentials to code
using the AWS SDK for Java.
The same profiles are used by the AWS CLI.
For more information on setting up AWS configuration profiles, see: http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html
Copyright © 2016. All rights reserved.