Configure the AWS and ECS CLIs.
Last updated
Last updated
Configure the AWS CLI. (The main steps are reproduced below for your convenience.)
First, you will need to generate access keys. Best practices dictate that you create an IAM Admin User and Group rather than creating root access keys.
To create an IAM user, sign into Identity and Access Management in your AWS console using your root user credentials.
Navigate to My Account and enable access to billing data for IAM users.
Navigate back to Identity and Access Management, select Users in the left sidebar and click Add user.
Set username as Administrator
and click Next: Permissions.
Under the Add user to group tab, select Create group. Call the group name Administrators
and check the AdministratorAccess job function in the list of policies. Then click Create group to continue.
Click through the Tags page, review your settings and click Create user. Download the CSV with login information.
Return to the Users page and select the Security credentials tab for the Administrator
user you just created.
Under Access keys, click Create access keys.
Run aws configure --profile myprofile
(where you substitute myprofile
with a name of your choosing; this is just in case you want to have multiple logins, which you probably will), pasting your Access Key ID and Secret Access key as needed.
Note: When configuring AWS, be sure to specify us-east-1
as your default region name and json
as your default output format.
The output should look like this.
There's no need follow the steps on the ECS CLI 'configuration' page. The Pushkin CLI will handle this for you.
Note: In configuring the ECS CLI, you'll need the AWS profile name you are using, as well as the related Access Key ID and Secret Access Key. If you can't remember the name of your profile, you can get a list of active profiles on your computer using:
To see the Access Key ID and Secret Access Key for a given profile, run the following, where [profile]
is replaced with the name of the profile you want to use: