Skip to content

Commit

Permalink
Merge pull request #112 from synfinatic/fields
Browse files Browse the repository at this point in the history
use AccountAlias in `list` command
  • Loading branch information
synfinatic authored Nov 11, 2021
2 parents 4a15766 + 2f2a42b commit 3d83825
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

* Add `AccountAlias` and `Expires` to list of fields that can be displayed via
the `list` command
* `AccountAlias` replaces `AccountName` in the list of default fields for `list`

## [v1.2.1] - 2021-11-03

* Add customizable color support #79
Expand Down
8 changes: 5 additions & 3 deletions cmd/list_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
// their YAML config file or provided list on the CLI
var defaultListFields = []string{
"AccountId",
"AccountName",
"AccountAlias",
"RoleName",
"ExpiresStr",
}
Expand All @@ -42,12 +42,14 @@ var allListFields = map[string]string{
"Id": "Column Index",
"Arn": "AWS Role Resource Name",
"AccountId": "AWS AccountID",
"AccountName": "AWS Account Name",
"AccountName": "Configured Account Name",
"AccountAlias": "AWS Account Alias",
"DefaultRegion": "Default AWS Region",
"EmailAddress": "Root email for AWS account",
"ExpiresStr": "Time until STS creds expire",
"Expires": "Unix Epoch when STS creds expire",
// "Profile": "AWS_PROFILE",
"RoleName": "AWS Role",
"RoleName": "AWS Role Name",
// "Via": "Role Chain Via",
}

Expand Down

0 comments on commit 3d83825

Please sign in to comment.