Skip to content

Commit

Permalink
aws/ec2rolecreds: update inline documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeczalik committed Nov 23, 2015
1 parent 328e030 commit b4ad407
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion aws/credentials/chain_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var (
// creds := NewChainCredentials(
// []Provider{
// &EnvProvider{},
// &EC2RoleProvider{},
// &EC2RoleProvider{Client: ec2metadata.New(session.New())},
// })
//
// // Usage of ChainCredentials with aws.Config
Expand Down
8 changes: 5 additions & 3 deletions aws/credentials/ec2rolecreds/ec2_role_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ import (
// p := &ec2rolecreds.EC2RoleProvider{
// // Pass in a custom timeout to be used when requesting
// // IAM EC2 Role credentials.
// Client: &http.Client{
// Timeout: 10 * time.Second,
// },
// Client: ec2metadata.New(session.New(), &aws.Config{
// HTTPClient: &http.Client{
// Timeout: 10 * time.Second,
// },
// }),
// // Do not use early expiry of credentials. If a non zero value is
// // specified the credentials will be expired early
// ExpiryWindow: 0,
Expand Down

0 comments on commit b4ad407

Please sign in to comment.