Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross account S3 bucket deployments #294

Open
ezrover opened this issue Jan 8, 2022 · 1 comment
Open

Cross account S3 bucket deployments #294

ezrover opened this issue Jan 8, 2022 · 1 comment

Comments

@ezrover
Copy link

ezrover commented Jan 8, 2022

This plugin works well with local buckets within the current account. However, when the s3://bucket-in-another-account is used, the deploy command errors out with Access Denied.

✖ Failed.
AccessDenied: Access Denied

  • s3.js:710 Request.extractError
    [frontend]/[aws-sdk]/lib/services/s3.js:710:35

Even though IAM roles is setup correctly for the user/role to have full ss3 access in the other account. Also, the bucket policy in the other account is setup correctly to give user in the other account full s3 rights.

To resolve this issue, please follow https://aws.amazon.com/premiumsupport/knowledge-center/s3-bucket-owner-access/ and ensure for each object write, you add "--acl bucket-owner-full-control" .

@YoshiWalsh
Copy link
Collaborator

YoshiWalsh commented Jan 8, 2022

I don't have much experience with cross-account requests, but would it fix the problem if you set the Object Ownership settings on your bucket to "bucket owner enforced"? The documentation says that with this setting you don't need to specify any ACL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants