Merge pull request #11339 from jmcarp/issue-10061
Set correct aws partition on s3 resource.
This commit is contained in:
commit
2efe489d59
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue