Skip to content

Commit

Permalink
fix: Using required arguments instead of lookup in replication_config…
Browse files Browse the repository at this point in the history
…uration (#35)
  • Loading branch information
karancode authored Aug 17, 2020
1 parent 0e53fa7 commit f3f8fe5
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 @@ -117,13 +117,13 @@ resource "aws_s3_bucket" "this" {
id = lookup(rules.value, "id", null)
priority = lookup(rules.value, "priority", null)
prefix = lookup(rules.value, "prefix", null)
status = lookup(rules.value, "status", null)
status = rules.value.status

dynamic "destination" {
for_each = length(keys(lookup(rules.value, "destination", {}))) == 0 ? [] : [lookup(rules.value, "destination", {})]

content {
bucket = lookup(destination.value, "bucket", null)
bucket = destination.value.bucket
storage_class = lookup(destination.value, "storage_class", null)
replica_kms_key_id = lookup(destination.value, "replica_kms_key_id", null)
account_id = lookup(destination.value, "account_id", null)
Expand Down

0 comments on commit f3f8fe5

Please # to comment.