diff --git a/iamy/s3.go b/iamy/s3.go index c8f40af..30fd2ff 100644 --- a/iamy/s3.go +++ b/iamy/s3.go @@ -84,7 +84,7 @@ func (c *s3Client) populateBucket(b *bucket) error { return err } - region := normaliseString(r.LocationConstraint) + region := s3.NormalizeBucketLocation(normaliseString(r.LocationConstraint)) b.policyJson, err = c.GetBucketPolicyDoc(b.name, region) return err