mirror of https://github.com/kubernetes/kops.git
Merge pull request #1325 from justinsb/always_set_verbose_aws
Always set CredentialsChainVerboseErrors when initializing AWS
This commit is contained in:
commit
5d4cf07fa1
|
|
@ -52,6 +52,7 @@ func NewRoute53DNSProvider(zoneName string) (*Route53DNSProvider, error) {
|
|||
})
|
||||
|
||||
config := aws.NewConfig()
|
||||
config = config.WithCredentialsChainVerboseErrors(true)
|
||||
|
||||
p.client = route53.New(s, config)
|
||||
|
||||
|
|
|
|||
|
|
@ -72,6 +72,8 @@ func NewAWSVolumes() (*AWSVolumes, error) {
|
|||
})
|
||||
|
||||
config := aws.NewConfig()
|
||||
config = config.WithCredentialsChainVerboseErrors(true)
|
||||
|
||||
a.metadata = ec2metadata.New(s, config)
|
||||
|
||||
region, err := a.metadata.Region()
|
||||
|
|
|
|||
|
|
@ -43,6 +43,8 @@ func ValidateRegion(region string) error {
|
|||
awsRegion = "us-east-1"
|
||||
}
|
||||
config := aws.NewConfig().WithRegion(awsRegion)
|
||||
config = config.WithCredentialsChainVerboseErrors(true)
|
||||
|
||||
client := ec2.New(session.New(), config)
|
||||
|
||||
response, err := client.DescribeRegions(request)
|
||||
|
|
|
|||
|
|
@ -46,6 +46,8 @@ func (s *S3Context) getClient(region string) (*s3.S3, error) {
|
|||
s3Client := s.clients[region]
|
||||
if s3Client == nil {
|
||||
config := aws.NewConfig().WithRegion(region)
|
||||
config = config.WithCredentialsChainVerboseErrors(true)
|
||||
|
||||
session := session.New()
|
||||
s3Client = s3.New(session, config)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue