Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit bf4cea8

Browse files
fix: remove deprecated use of S3 ACLs (#3222)
* fix: Remove deprecated use of S3 ACLs ACLs were disabled by default in April 2023: https://aws.amazon.com/about-aws/whats-new/2022/12/amazon-s3-automatically-enable-block-public-access-disable-access-control-lists-buckets-april-2023/ As we don't use ACLs, it's simplest to configure the bucket to not use them, which is the new recommended approach. Fixes #3202. * terraform fmt
1 parent 54575fd commit bf4cea8

File tree

1 file changed

+4
-2
lines changed
  • modules/runner-binaries-syncer

1 file changed

+4
-2
lines changed

Diff for: modules/runner-binaries-syncer/main.tf

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ resource "aws_s3_bucket" "action_dist" {
88
tags = var.tags
99
}
1010

11-
resource "aws_s3_bucket_acl" "action_dist_acl" {
11+
resource "aws_s3_bucket_ownership_controls" "this" {
1212
bucket = aws_s3_bucket.action_dist.id
13-
acl = "private"
13+
rule {
14+
object_ownership = "BucketOwnerEnforced"
15+
}
1416
}
1517

1618
resource "aws_s3_bucket_lifecycle_configuration" "bucket-config" {

0 commit comments

Comments
 (0)