Skip to content

Commit ac386aa

Browse files
tighter sts print
1 parent ece0181 commit ac386aa

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎cmd/rds-iam-psql/main.go‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,7 @@ func printCallerIdentity(ctx context.Context, cfg aws.Config) error {
167167
return fmt.Errorf("STS GetCallerIdentity failed (creds invalid/expired or STS not allowed): %w", err)
168168
}
169169

170-
account := aws.ToString(out.Account)
171-
arn := aws.ToString(out.Arn)
172-
173-
fmt.Printf("AWS Account: %s\n", account)
174-
fmt.Printf("Caller ARN: %s\n", arn)
175-
170+
fmt.Printf("Caller ARN: %s\n", aws.ToString(out.Arn))
176171
return nil
177172
}
178173

0 commit comments

Comments
 (0)