Merge pull request #11339 from jmcarp/issue-10061

Set correct aws partition on s3 resource.
This commit is contained in:
Jake Champlin 2017-01-23 09:17:33 -05:00 committed by GitHub
commit 2efe489d59
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
}