Skip to content

Commit

Permalink
Fix keepers
Browse files Browse the repository at this point in the history
  • Loading branch information
skyfox675 committed Jul 8, 2022
1 parent c35b2fa commit 6fef0e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ resource "aws_s3_object" "this" {
key = each.value
source = "${var.file_path}/${each.value}"
etag = filemd5("${var.file_path}/${each.value}")
server_side_encryption = random_pet.this.keepers.sse_encrypt ? "AES256" : null
server_side_encryption = random_pet.this.keepers["sse_encrypt"] ? "AES256" : null

lifecycle {
replace_triggered_by = [
random_pet.this.keepers.sse_encrypt
random_pet.this
]
}
}

0 comments on commit 6fef0e8

Please sign in to comment.