Skip to content

Commit

Permalink
Add some clarifying info when authing CLI with AWS
Browse files Browse the repository at this point in the history
  • Loading branch information
sgibson91 committed Oct 9, 2023
1 parent 1575e90 commit 65505d5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/topic/access-creds/cloud-auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ are used to provide access to the AWS account from your terminal.
format:

```ini
[your-cluster-name]
[your-cluster-name or the AWS account name]
aws_access_key_id = <key-id>
aws_secret_access_key = <access-key>
```
Expand All @@ -172,9 +172,12 @@ are used to provide access to the AWS account from your terminal.
You can execute it like so:

```bash
$ deployer exec-aws-shell <your-cluster-hname> <arn-of-mfa-device> <code-from-token>
$ deployer exec-aws-shell <aws-profile-name> <arn-of-mfa-device> <code-from-token>
```

where `<aws-profile-name>` must match the name of the profile in `~/.aws/credentials`
you created in the previous step.

This will open a new subshell with all the appropriate AWS environment
variables setup to perform actions with `terraform`, `eksctl`, etc. Note
this requires that you have an aws profile set up under `~/.aws/credentials`
Expand Down

0 comments on commit 65505d5

Please sign in to comment.