Set correct aws partition on s3 resource.

[Resolves #10061]
This commit is contained in:
Joshua Carp 2017-01-22 15:03:21 -05:00
parent d818fa4dbc
commit 353430e08a
No known key found for this signature in database
GPG Key ID: CA7574E5483AB09D
1 changed files with 1 additions and 1 deletions

View File

@ -905,7 +905,7 @@ func resourceAwsS3BucketRead(d *schema.ResourceData, meta interface{}) error {
return err
}
d.Set("arn", fmt.Sprint("arn:aws:s3:::", d.Id()))
d.Set("arn", fmt.Sprintf("arn:%s:s3:::%s", meta.(*AWSClient).partition, d.Id()))
return nil
}