Skip to content

Commit

Permalink
Merge pull request coreos#386 from cgag/verbose-credential-errors
Browse files Browse the repository at this point in the history
kube-aws: enable verbose credential chain errors
  • Loading branch information
colhom committed Apr 7, 2016
2 parents 7ee3208 + aeceae4 commit 6a68607
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions multi-node/aws/pkg/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ func (c *ClusterInfo) String() string {
}

func New(cfg *config.Cluster, awsDebug bool) *Cluster {
awsConfig := aws.NewConfig()
awsConfig = awsConfig.WithRegion(cfg.Region)
awsConfig := aws.NewConfig().
WithRegion(cfg.Region).
WithCredentialsChainVerboseErrors(true)

if awsDebug {
awsConfig = awsConfig.WithLogLevel(aws.LogDebug)
}
Expand Down
6 changes: 4 additions & 2 deletions multi-node/aws/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,10 @@ func (c Cluster) stackConfig(opts StackTemplateOptions, compressUserData bool) (
return nil, err
}

awsConfig := aws.NewConfig()
awsConfig = awsConfig.WithRegion(stackConfig.Config.Region)
awsConfig := aws.NewConfig().
WithRegion(stackConfig.Config.Region).
WithCredentialsChainVerboseErrors(true)

kmsSvc := kms.New(session.New(awsConfig))

compactAssets, err := assets.compact(stackConfig.Config, kmsSvc)
Expand Down

0 comments on commit 6a68607

Please sign in to comment.