do not force path style for better compatibility

This commit is contained in:
Chris Lu
2021-08-23 03:09:41 -07:00
parent 2836a58d87
commit f0cc130849
3 changed files with 0 additions and 3 deletions

View File

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