Skip to content

Commit

Permalink
fix: Add lifecycle ignore changes on s3_bucket resource to prevent co…
Browse files Browse the repository at this point in the history
…nfiguration loop (#145)
  • Loading branch information
jaybocc2 committed Apr 2, 2022
1 parent 1ae31ac commit 895cfa5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,23 @@ resource "aws_s3_bucket" "this" {
object_lock_enabled = "Enabled"
}
}

lifecycle {
ignore_changes = [
acceleration_status,
acl,
grant,
cors_rule,
lifecycle_rule,
logging,
object_lock_configuration[0].rule,
replication_configuration,
request_payer,
server_side_encryption_configuration,
versioning,
website
]
}
}

resource "aws_s3_bucket_logging" "this" {
Expand Down

0 comments on commit 895cfa5

Please sign in to comment.