Skip to content

Commit

Permalink
aws: Fix CredentialCache example code (aws#879)
Browse files Browse the repository at this point in the history
  • Loading branch information
int-tt authored Nov 5, 2020
1 parent cd4b004 commit 23ea3d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions credentials/stscreds/assume_role_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 23ea3d9

Please sign in to comment.