Skip to content

Commit

Permalink
feat: add arn columns for some resources
Browse files Browse the repository at this point in the history
  • Loading branch information
miltlima committed Sep 18, 2023
1 parent 7bb3f9a commit 1345dfc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/aws_cloudfront.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func init() {

func queryCloudFront(cmd *cobra.Command, args []string) {
table := tablewriter.NewWriter(os.Stdout)
table.SetHeader([]string{"Distribution ID", "Region", "Domain Name", "Status", "Default Cache Behavior"})
table.SetHeader([]string{"Distribution ID", "Region", "Domain Name", "Status", "Default Cache Behavior", "arn"})

AuthRegions := deps.AuthRegions()
for _, region := range AuthRegions {
Expand Down
3 changes: 2 additions & 1 deletion cmd/aws_dynamodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func init() {

func queryDynamoDB(cmd *cobra.Command, args []string) {
table := tablewriter.NewWriter(os.Stdout)
table.SetHeader([]string{"Table Name", "Region", "Status", "Item Count", "Size (Bytes)", "Provisioned Throughput"})
table.SetHeader([]string{"Table Name", "Region", "Status", "Item Count", "Size (Bytes)", "Provisioned Throughput", "arn"})

AuthRegions := deps.AuthRegions()
for _, region := range AuthRegions {
Expand Down Expand Up @@ -74,6 +74,7 @@ func queryDynamoDB(cmd *cobra.Command, args []string) {
fmt.Sprintf("%d", *tableDetails.Table.ItemCount),
fmt.Sprintf("%d", *tableDetails.Table.TableSizeBytes),
provisionedThroughput,
*tableDetails.Table.TableArn,
}
table.Append(row)
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/aws_iam.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func init() {

func queryIAM(cmd *cobra.Command, args []string) {
table := tablewriter.NewWriter(os.Stdout)
table.SetHeader([]string{"Name", "Type", "Region", "Creation Time"})
table.SetHeader([]string{"Name", "Type", "Region", "Creation Time", "arn"})

AuthRegions := deps.AuthRegions()
for _, region := range AuthRegions {
Expand Down

0 comments on commit 1345dfc

Please sign in to comment.