with wrapping

This commit is contained in:
Matthew Hooker 2017-06-09 10:46:01 -07:00
parent 23084fe171
commit f637878822
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1
1 changed files with 2 additions and 1 deletions

View File

@ -63,8 +63,9 @@ func (c *AccessConfig) Session() (*session.Session, error) {
config := aws.NewConfig().WithRegion(region).WithMaxRetries(11).WithCredentialsChainVerboseErrors(true) config := aws.NewConfig().WithRegion(region).WithMaxRetries(11).WithCredentialsChainVerboseErrors(true)
if c.CustomEndpointEc2 != "" { if c.CustomEndpointEc2 != "" {
config.Endpoint = &c.CustomEndpointEc2 config = config.WithEndpoint(aws.String(c.CustomEndpointEc2))
} }
if c.AccessKey != "" { if c.AccessKey != "" {
creds := credentials.NewChainCredentials( creds := credentials.NewChainCredentials(
[]credentials.Provider{ []credentials.Provider{