with wrapping
This commit is contained in:
parent
23084fe171
commit
f637878822
|
@ -63,8 +63,9 @@ func (c *AccessConfig) Session() (*session.Session, error) {
|
|||
config := aws.NewConfig().WithRegion(region).WithMaxRetries(11).WithCredentialsChainVerboseErrors(true)
|
||||
|
||||
if c.CustomEndpointEc2 != "" {
|
||||
config.Endpoint = &c.CustomEndpointEc2
|
||||
config = config.WithEndpoint(aws.String(c.CustomEndpointEc2))
|
||||
}
|
||||
|
||||
if c.AccessKey != "" {
|
||||
creds := credentials.NewChainCredentials(
|
||||
[]credentials.Provider{
|
||||
|
|
Loading…
Reference in New Issue