Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,21 @@ $ brew install setup
$ setup version
```

* If you want to use profile feature in aws cli, then you need to upgrade to the latest version
- required version >= 1.1.0
- If you finish upgrade, then you should upgrade configuration via `setup upgrade`
```bash
$ brew upgrade setup
$ brew version
v1.1.0

$ setup upgrade
```

## How to use
### First init setup.
* Session name should be your original IAM user name in the account from which you log in through console.
* This will be stored as configuration for default profile.
```bash
$ setup init
? Your session name: <Session name>
Expand Down Expand Up @@ -65,3 +76,12 @@ $ setup ls
[current role list]

```

## Use profile
* You can use profile with `--profile=<profile>`
```bash
$ setup list --profile test
$ setup add --profile test
$ setup edit --profile test
$ setup delete --profile test
```
6 changes: 3 additions & 3 deletions cmd/setup/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import (

// addCmd represents the add command
var addCmd = &cobra.Command{
Use: "add",
Short: "Add new assume role",
Long: `Add new assume role`,
Use: "add",
Short: "Add new assume role",
Long: `Add new assume role`,
Aliases: []string{"a"},
Run: func(cmd *cobra.Command, args []string) {
if err := AddNewAssumeRole(args); err != nil {
Expand Down
Loading