Configure AWS CLI¶
This guide will walk you through configuring the AWS CLI (
aws) for your IAM
If you have already configured
aws for your IAM user, expand this box to
- Proceed to the Verify section.
Choose one of the following options to configure the AWS CLI:
Here is what you’ll need based on whether you want to use custom or auto-detected credentials.
Configure the AWS CLI by following the on-screen instructions on the
rok-deploy user interface.
rok-deploy is not already running, start it with:
Proceed to the Summary section.
If you want to configure the AWS CLI manually, follow the instructions below.
Go to your GitOps repository, inside your
rok-toolsmanagement environment:root@rok-tools:~# cd ~/ops/deployments
Create the AWS configuration directory:root@rok-tools:~/ops/deployments# mkdir -p /root/.aws
Provide your AWS credentials. Choose one of the following options depending on whether you want to use custom or auto-detected credentials.
Specify the region where you want to perform this deployment:root@rok-tools:~/ops/deployments# export AWS_DEFAULT_REGION=<REGION>
<REGION>with the desired region. For example:root@rok-tools:~/ops/deployments# export AWS_DEFAULT_REGION=us-east-1
Save your AWS configuration in the default profile:root@rok-tools:~/ops/deployments# j2 deploy/aws-config.j2 \ > -o /root/.aws/config
You have successfully configured the AWS CLI for your IAM user in your management environment.