Make destroy protection environment aware

This commit is contained in:
2026-11-14 14:05:19 +09:00
parent 94a5c2bf55
commit a1453034c3
8 changed files with 84 additions and 28 deletions
+14
View File
@@ -0,0 +1,14 @@
moved {
from = aws_kms_key.vault
to = aws_kms_key.vault_protected[0]
}
moved {
from = aws_s3_bucket.this["cloudtrail"]
to = aws_s3_bucket.protected["cloudtrail"]
}
moved {
from = aws_s3_bucket.this["flowlogs"]
to = aws_s3_bucket.protected["flowlogs"]
}