silverton-io / buz

Serverless multi-protocol + multi-destination event collection system.
https://buz.dev/
Apache License 2.0
186 stars 21 forks source link

Fix 'The bucket does not allow ACLs' error on bucket setup #568

Closed pblankley closed 1 year ago

pblankley commented 1 year ago

I got this error attempting to do the terraform setup for AWS Lambda. Same error for the events and the schemas buckets.

│ Error: error creating S3 bucket ACL for buz-prod-events: AccessControlListNotSupported: The bucket does not allow ACLs
│   status code: 400, request id: XXXXXXXXXXXXXX host id: XXXXXXXXXXXXXXXXX
│
│   with aws_s3_bucket_acl.events_acl,
│   on main.tf line 83, in resource "aws_s3_bucket_acl" "events_acl":
│   83: resource "aws_s3_bucket_acl" "events_acl" {
│

Looked around and found this stack overflow, added the change, and it looks like everything is working now.

Let me know if there's anything you'd like to change about the PR!