Skip to content

Commit

Permalink
fix aws sdk session (kubernetes-sigs#1508)
Browse files Browse the repository at this point in the history
  • Loading branch information
M00nF1sh authored Oct 15, 2020
1 parent 344896f commit cdc8f71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/aws/cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ func NewCloud(cfg CloudConfig, metricsRegisterer prometheus.Registerer) (Cloud,
cfg.VpcID = vpcId
}

awsCfg := aws.NewConfig().WithRegion(cfg.Region).WithSTSRegionalEndpoint(endpoints.RegionalSTSEndpoint).WithMaxRetries(cfg.MaxRetries)
sess = sess.Copy(awsCfg)
awsCFG := aws.NewConfig().WithRegion(cfg.Region).WithSTSRegionalEndpoint(endpoints.RegionalSTSEndpoint).WithMaxRetries(cfg.MaxRetries)
sess = session.Must(session.NewSession(awsCFG))
return &defaultCloud{
cfg: cfg,
ec2: services.NewEC2(sess),
Expand Down

0 comments on commit cdc8f71

Please sign in to comment.