Skip to content

Commit

Permalink
fix: Remove conflicting S3 bucket ACL resource from Terraform configu…
Browse files Browse the repository at this point in the history
…ration

If “Bucket owner enforced” is active for your S3 bucket, ACLs are effectively disabled. Attempting to set them via Terraform (aws_s3_bucket_acl) will fail with AccessControlListNotSupported. See hashicorp/terraform-provider-aws#34079
  • Loading branch information
kaqmak committed Jan 9, 2025
1 parent aad1c56 commit 99f48dd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions mlflow-terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
provider "aws" {
region = "eu-central-1"
}
// Mlflow bucket will get a random unique name
resource "aws_s3_bucket_acl" "mlflow_bucket_acl" {
acl = "private"
bucket = aws_s3_bucket.mlflow_bucket.id
}

resource "aws_s3_bucket" "mlflow_bucket" {
tags = {
Name = "Mlflow model artifacts bucket"
Expand Down

0 comments on commit 99f48dd

Please sign in to comment.