Skip to content

Commit

Permalink
Update readme: console -> bash.
Browse files Browse the repository at this point in the history
  • Loading branch information
ejholmes committed Jan 26, 2016
1 parent a45193b commit 9e01339
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ This is a small utility that makes it easier to use the `aws sts assume-role` co

## Installation

```console
```bash
$ go get -u github.com/remind101/assume-role
```

Expand All @@ -24,22 +24,22 @@ stage:
Perform an action as the given IAM role:
```console
```bash
$ assume-role stage aws iam get-user
```

The command provided after the role will be executed with the `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY` and `AWS_SESSION_TOKEN` environment variables set.

If the role requires MFA, you will be asked for the token first:

```console
```bash
$ assume-role prod aws iam get-user
MFA code: 123456
```

If no command is provided, `assume-role` will output the temporary security credentials:

```console
```bash
$ assume-role prod
export AWS_ACCESS_KEY_ID="ASIAI....UOCA"
export AWS_SECRET_ACCESS_KEY="DuH...G1d"
Expand Down

0 comments on commit 9e01339

Please sign in to comment.