|
@ -34,8 +34,9 @@ func createSession(awsAccessKeyId, awsSecretAccessKey, region, endpoint string) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
config := &aws.Config{ |
|
|
config := &aws.Config{ |
|
|
Region: aws.String(region), |
|
|
|
|
|
Endpoint: aws.String(endpoint), |
|
|
|
|
|
|
|
|
Region: aws.String(region), |
|
|
|
|
|
Endpoint: aws.String(endpoint), |
|
|
|
|
|
S3ForcePathStyle: aws.Bool(true), |
|
|
} |
|
|
} |
|
|
if awsAccessKeyId != "" && awsSecretAccessKey != "" { |
|
|
if awsAccessKeyId != "" && awsSecretAccessKey != "" { |
|
|
config.Credentials = credentials.NewStaticCredentials(awsAccessKeyId, awsSecretAccessKey, "") |
|
|
config.Credentials = credentials.NewStaticCredentials(awsAccessKeyId, awsSecretAccessKey, "") |
|
|