From 11ef62b81a77feaf9fd6f7120bc3852262e73fd7 Mon Sep 17 00:00:00 2001 From: Head Gardener Date: Sat, 26 Oct 2024 20:17:32 +0300 Subject: [PATCH] fix(terraform): don't use focre_destroy as per aminueza/terraform-provider-minio#582 --- terraform/minio/buckets.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/minio/buckets.tf b/terraform/minio/buckets.tf index a9172e8..193e6ca 100644 --- a/terraform/minio/buckets.tf +++ b/terraform/minio/buckets.tf @@ -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] } @@ -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