From 419eaeda5131ce7df4f8eaee98bd747cef4dce6d Mon Sep 17 00:00:00 2001 From: Matt Mix <36235043+mwmix@users.noreply.github.com> Date: Mon, 1 Jul 2019 04:44:19 -0400 Subject: [PATCH] Updated to include increase verbosity on credential chain errors. (#257) --- pkg/aws/sts/gateway.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/aws/sts/gateway.go b/pkg/aws/sts/gateway.go index d5f34fc4..be49e681 100644 --- a/pkg/aws/sts/gateway.go +++ b/pkg/aws/sts/gateway.go @@ -81,7 +81,7 @@ type DefaultSTSGateway struct { } func DefaultGateway(assumeRoleArn, region string) (*DefaultSTSGateway, error) { - config := aws.NewConfig() + config := aws.NewConfig().WithCredentialsChainVerboseErrors(true) if assumeRoleArn != "" { config.WithCredentials(stscreds.NewCredentials(session.Must(session.NewSession()), assumeRoleArn)) }