1 parent ece0181 commit ac386aaCopy full SHA for ac386aa
1 file changed
cmd/rds-iam-psql/main.go
@@ -167,12 +167,7 @@ func printCallerIdentity(ctx context.Context, cfg aws.Config) error {
167
return fmt.Errorf("STS GetCallerIdentity failed (creds invalid/expired or STS not allowed): %w", err)
168
}
169
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
+ fmt.Printf("Caller ARN: %s\n", aws.ToString(out.Arn))
176
return nil
177
178
0 commit comments