Skip to content

Commit

Permalink
fix: Updated bucket resource to allow replacement with `create_before…
Browse files Browse the repository at this point in the history
…_destroy`.
  • Loading branch information
jamesiarmes committed Oct 28, 2024
1 parent ebc087f commit 82b5fd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ resource "aws_s3_bucket" "logs" {
bucket_prefix = var.bucket_suffix ? "${local.prefix}-logs-" : null

lifecycle {
prevent_destroy = true
create_before_destroy = true
}

tags = var.tags
Expand Down

0 comments on commit 82b5fd8

Please sign in to comment.