2

I have two AWS accounts. Each account has an S3 bucket and CloudFront which exposes the contents of the S3 bucket.

I would like to get rid of a CORS issue. For that I I need to serve all content using one CloudFront.

How I can grant permissions to the S3 bucket from account2 to CloudFront in account1?

2
  • Are the buckets public? How are you currently granting access to CloudFront? (eg Origin Access Identity?) Commented Jun 10, 2019 at 23:55
  • no buckets not public by security reason Commented Jun 11, 2019 at 19:17

1 Answer 1

1

This is possible if the bucket is publicly accessible , the bucket won't come in the drop down when you're creating origin but you can use the name as bucket.s3.region.amazonaws.com.

It is also possible using origin access identity. Use first your own bucket to create the bucket policy automatically by CloudFront, you should be able to see IAM identity in CloudTrail, you can copy the same policy on the other account S3 bucket and OAI should work.

Sign up to request clarification or add additional context in comments.

1 Comment

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.