Skip to content

Commit

Permalink
fix(terraform): don't use focre_destroy as per aminueza/terraform-pro…
Browse files Browse the repository at this point in the history
  • Loading branch information
head-gardener committed Oct 26, 2024
1 parent d2efd79 commit 11ef62b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform/minio/buckets.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "minio_iam_user" bucket_owner {
for_each = toset(local.buckets)
name = each.value
force_destroy = true
force_destroy = false
secret = local.secrets[each.value]
}

Expand Down Expand Up @@ -35,7 +35,7 @@ resource "minio_iam_policy" access_policy {
EOF
}

resource "minio_iam_user_policy_attachment" access {
resource "minio_iam_user_policy_attachment" access {
for_each = toset(local.buckets)
user_name = minio_iam_user.bucket_owner[each.value].id
policy_name = minio_iam_policy.access_policy[each.value].id
Expand Down

0 comments on commit 11ef62b

Please sign in to comment.