Skip to content

Commit

Permalink
fix: define velero s3 bucket ownership controls
Browse files Browse the repository at this point in the history
  • Loading branch information
parrotmac committed Jun 28, 2024
1 parent 12f62b6 commit 7042294
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions velero.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ resource "aws_s3_bucket" "velero" {
tags = var.tags
}

resource "aws_s3_bucket_ownership_controls" "velero" {
count = local.create_velero_bucket ? 1 : 0
bucket = aws_s3_bucket.velero[count.index].id
rule {
object_ownership = "ObjectWriter"
}
}

resource "aws_s3_bucket_acl" "velero" {
count = local.create_velero_bucket ? 1 : 0
bucket = aws_s3_bucket.velero[count.index].id
Expand Down

0 comments on commit 7042294

Please sign in to comment.