Skip to content

Commit

Permalink
Force temporary credentials to last longer
Browse files Browse the repository at this point in the history
  • Loading branch information
errordeveloper committed Jul 12, 2018
1 parent 33e9956 commit f7ee77d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/eks/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ func newSession(clusterConfig *ClusterConfig, endpoint string, credentials *cred
AssumeRoleTokenProvider: stscreds.StdinTokenProvider,
}

stscreds.DefaultDuration = 30 * time.Minute

if len(endpoint) > 0 {
opts.Config.Endpoint = &endpoint
}
Expand Down

0 comments on commit f7ee77d

Please sign in to comment.