Skip to content

Commit

Permalink
fix: Disable prevent_destroy
Browse files Browse the repository at this point in the history
Since we can’t easily provide this attribute to the module user this “safety net” needs to be removed.
  • Loading branch information
clburlison committed Apr 19, 2021
1 parent 6312288 commit 06015d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
*.tfstate.backup
*.zip
*.hcl
*.info
!lambda_payload.zip
3 changes: 1 addition & 2 deletions s3_bucket.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ resource "aws_s3_bucket" "munki-bucket" {
lifecycle {
# This can't be interpolationed as a variable. https://github.com/hashicorp/terraform/issues/3116
# This bucket must be manually destroyed in the AWS console or via API for safety purposes.
prevent_destroy = true
prevent_destroy = false
}

tags = merge(
Expand Down Expand Up @@ -54,4 +54,3 @@ resource "aws_s3_bucket_notification" "bucket_notification" {
filter_prefix = "pkgsinfo/"
}
}

0 comments on commit 06015d0

Please sign in to comment.