mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Merge pull request #47401 from justinsb/fix_39374
Automatic merge from submit-queue (batch tested with PRs 47922, 47195, 47241, 47095, 47401) AWS: Set CredentialsChainVerboseErrors This avoids a rather confusing error message. Fix #39374 ```release-note NONE ```
This commit is contained in:
commit
be0b045072
@ -504,10 +504,13 @@ func (p *awsSDKProvider) getCrossRequestRetryDelay(regionName string) *CrossRequ
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (p *awsSDKProvider) Compute(regionName string) (EC2, error) {
|
func (p *awsSDKProvider) Compute(regionName string) (EC2, error) {
|
||||||
service := ec2.New(session.New(&aws.Config{
|
awsConfig := &aws.Config{
|
||||||
Region: ®ionName,
|
Region: ®ionName,
|
||||||
Credentials: p.creds,
|
Credentials: p.creds,
|
||||||
}))
|
}
|
||||||
|
awsConfig = awsConfig.WithCredentialsChainVerboseErrors(true)
|
||||||
|
|
||||||
|
service := ec2.New(session.New(awsConfig))
|
||||||
|
|
||||||
p.addHandlers(regionName, &service.Handlers)
|
p.addHandlers(regionName, &service.Handlers)
|
||||||
|
|
||||||
@ -518,10 +521,13 @@ func (p *awsSDKProvider) Compute(regionName string) (EC2, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (p *awsSDKProvider) LoadBalancing(regionName string) (ELB, error) {
|
func (p *awsSDKProvider) LoadBalancing(regionName string) (ELB, error) {
|
||||||
elbClient := elb.New(session.New(&aws.Config{
|
awsConfig := &aws.Config{
|
||||||
Region: ®ionName,
|
Region: ®ionName,
|
||||||
Credentials: p.creds,
|
Credentials: p.creds,
|
||||||
}))
|
}
|
||||||
|
awsConfig = awsConfig.WithCredentialsChainVerboseErrors(true)
|
||||||
|
|
||||||
|
elbClient := elb.New(session.New(awsConfig))
|
||||||
|
|
||||||
p.addHandlers(regionName, &elbClient.Handlers)
|
p.addHandlers(regionName, &elbClient.Handlers)
|
||||||
|
|
||||||
@ -529,10 +535,13 @@ func (p *awsSDKProvider) LoadBalancing(regionName string) (ELB, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (p *awsSDKProvider) Autoscaling(regionName string) (ASG, error) {
|
func (p *awsSDKProvider) Autoscaling(regionName string) (ASG, error) {
|
||||||
client := autoscaling.New(session.New(&aws.Config{
|
awsConfig := &aws.Config{
|
||||||
Region: ®ionName,
|
Region: ®ionName,
|
||||||
Credentials: p.creds,
|
Credentials: p.creds,
|
||||||
}))
|
}
|
||||||
|
awsConfig = awsConfig.WithCredentialsChainVerboseErrors(true)
|
||||||
|
|
||||||
|
client := autoscaling.New(session.New(awsConfig))
|
||||||
|
|
||||||
p.addHandlers(regionName, &client.Handlers)
|
p.addHandlers(regionName, &client.Handlers)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user