Skip to content

Commit

Permalink
Add example to ReadMe
Browse files Browse the repository at this point in the history
  • Loading branch information
shortjared committed Apr 12, 2016
1 parent aba2ae7 commit 60a09f0
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,40 @@ Copy `awsume` to `/usr/local/bin`

Add profiles to `~/.aws/config`

```
# ~/.aws/config
[profile internal-admin]
role_arn = arn:aws:iam::<my aws account id>/role/admin-role
mfa_serial = arn:aws:iam::<my aws account id>:mfa/joel
source_profile = joel
[profile client1-admin]
role_arn = arn:aws:iam::<client #1 account id>/role/admin-role
mfa_serial = arn:aws:iam::<your aws account id>:mfa/joel
source_profile = joel
[profile client2-admin]
role_arn = arn:aws:iam::<client #2 account id>/role/admin-role
mfa_serial = arn:aws:iam::<your aws account id>:mfa/joel
source_profile = joel
```

Add credentials to `~/.aws/credentials`

```
# ~/.aws/credential
[default]
aws_access_key_id = AKIAIOIEUFSN9EXAMPLE
aws_secret_access_key = wJalrXIneUATF/K7MDENG/jeuFHEnfEXAMPLEKEY
[joel]
aws_access_key_id = AKIAIOSFODNN7EXAMPLE
aws_secret_access_key = wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
```

Usage:

awsume profilename [show]

See our [blog](https://www.trek10.com/blog/awsume-aws-assume-made-awesome) for more details
See our [blog](https://www.trek10.com/blog/awsume-aws-assume-made-awesome) for more details

0 comments on commit 60a09f0

Please sign in to comment.