From 23ea3d9550ca891f668ce512f861b2100e370c97 Mon Sep 17 00:00:00 2001 From: Katsuya Miyachi Date: Fri, 6 Nov 2020 04:25:52 +0900 Subject: [PATCH] aws: Fix CredentialCache example code (#879) --- credentials/stscreds/assume_role_provider.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/credentials/stscreds/assume_role_provider.go b/credentials/stscreds/assume_role_provider.go index c26f5eda486..5e49245922a 100644 --- a/credentials/stscreds/assume_role_provider.go +++ b/credentials/stscreds/assume_role_provider.go @@ -26,7 +26,7 @@ // stsSvc := sts.NewFromConfig(cfg) // creds := stscreds.NewAssumeRoleProvider(stsSvc, "myRoleArn") // -// cfg.Credentials = aws.CredentialsCache{Provider: creds} +// cfg.Credentials = &aws.CredentialsCache{Provider: creds} // // // Create service client value configured for credentials // // from assumed role. @@ -55,7 +55,7 @@ // o.TokenCode = aws.String("00000000") // }) // -// cfg.Credentials = aws.CredentialsCache{Provider: creds} +// cfg.Credentials = &aws.CredentialsCache{Provider: creds} // // // Create service client value configured for credentials // // from assumed role. @@ -88,7 +88,7 @@ // o.TokenProvider = stscreds.StdinTokenProvider // }) // -// cfg.Credentials = aws.CredentialsCache{Provider: creds} +// cfg.Credentials = &aws.CredentialsCache{Provider: creds} // // // Create service client value configured for credentials // // from assumed role.