aws-samples / aws-network-firewall-terraform

This repository contains terraform code to deploy the necessary resources to get started to test AWS Network Firewall.
MIT No Attribution
67 stars 30 forks source link

Fix: Enable ACLs on anfw_flow_bucket #8

Open jyriatntt opened 1 year ago

jyriatntt commented 1 year ago

Enable ACLs on anfw_flow_bucket, if those are not enabled tf apply fails on "Error: error creating S3 bucket ACL for network-firewall-flow-bucket-xxxxx: AccessControlListNotSupported: The bucket does not allow ACLs"

diff aws-network-firewall-terraform/firewall.tf aws-network-firewall-terraform_modified/firewall.tf 165a166

depends_on = [aws_s3_bucket_ownership_controls.s3_bucket_acl_ownership] 167a169,175 resource "aws_s3_bucket_ownership_controls" "s3_bucket_acl_ownership" { bucket = aws_s3_bucket.anfw_flow_bucket.id rule { object_ownership = "BucketOwnerPreferred" } }