Configuring your AWS credentials

Those paying very close attention may be asking a very important question--How do the AWS client libraries know how to log on to our account? Clearly, we need to tell them, and we have a few options.

The AWS SDK, when run locally, will check three places for the credentials--environment variables (AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY), system properties (aws.accessKeyId and aws.secretKey), and the default credentials profiles file ($HOME/.aws/credentials). What credentials you use is up to you, but I will show you here how to configure the profiles file.

Just like a Unix or Windows system, your AWS account has a root user that has complete access to your system. It would be extremely imprudent to run ...

Get Java 9: Building Robust Modular Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.