Follow these steps to create an AWS credentials profile:
-
Create an AWS profile called demo:
$ aws configure --profile demo
- Re-enter the same AWS aws_access_key_id and aws_secret_access_key details as in Chapter 1, Serverless Microservices Architectures and Patterns, for newuser.
Alternatively, you can copy the [default] profile by copying [default] and creating a new entry for [demo], as follows:
$ vi ~/.aws/credentials [default] aws_access_key_id = AAAAAAAAAAAAAAAAAAAA aws_secret_access_key = 1111111111111111111111111111111111111111 [demo] aws_access_key_id = AAAAAAAAAAAAAAAAAAAA aws_secret_access_key = 1111111111111111111111111111111111111111
The code provided with this book needs a profile name (here, demo) to make use of the right keys; please change this in each shell script, common-variables.sh, for each project if you use another profile name.