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

AccessControlListNotSupported error on running quick-deploy.sh #2

Open
Analect opened this issue May 17, 2023 · 1 comment
Open

AccessControlListNotSupported error on running quick-deploy.sh #2

Analect opened this issue May 17, 2023 · 1 comment

Comments

@Analect
Copy link

Analect commented May 17, 2023

Describe the bug
On running bash deployment-scripts/quick-deploy.sh, all seems to work except this error at the end related to AccessControlListNotSupported. Maybe this is an upstream problem in terraform.

Error: error creating S3 bucket ACL for data-core-development-44444XXXXXXX-asset-bucket: AccessControlListNotSupported: The bucket does not allow ACLs
│       status code: 400, request id: YMF1DP8H0XXBZHN5, host id: q4fN7cbYKnOxgHDhyeT3cuOS70je7fczmgP0LZh9H0b1O0VU6giJcDSkL7c+3whBaEXVNWi36oqzbshGNAN8VQ==
│
│   with module.asset_bucket.aws_s3_bucket_acl.this[0],
│   on .terraform/modules/asset_bucket/main.tf line 41, in resource "aws_s3_bucket_acl" "this":
│   41: resource "aws_s3_bucket_acl" "this" {

To Reproduce
Steps to reproduce the behavior:

  1. run bash deployment-scripts/quick-deploy.sh

Expected behavior
No error messages

@Analect
Copy link
Author

Analect commented May 19, 2023

It seems, from this issue, this problem may be related to this announcement around ACLs being disabled in buckets by default, which took effect in April.

To fix, add the following properties to the list in s3.tf

control_object_ownership = true
object_ownership         = "ObjectWriter"

The same problem is affecting ml-toolkit too.

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

No branches or pull requests

1 participant