From 2f2a42bc96edfe086c442c5ca298355370f2f67e Mon Sep 17 00:00:00 2001 From: Aaron Turner Date: Thu, 11 Nov 2021 13:46:55 -0800 Subject: [PATCH] use AccountAlias in `list` command --- CHANGELOG.md | 4 ++++ cmd/list_cmd.go | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 83c77b71..f25dc6af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/cmd/list_cmd.go b/cmd/list_cmd.go index d696b9b7..54f2c58d 100644 --- a/cmd/list_cmd.go +++ b/cmd/list_cmd.go @@ -32,7 +32,7 @@ import ( // their YAML config file or provided list on the CLI var defaultListFields = []string{ "AccountId", - "AccountName", + "AccountAlias", "RoleName", "ExpiresStr", } @@ -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", }