Skip to content

Commit

Permalink
temp revert variables
Browse files Browse the repository at this point in the history
  • Loading branch information
max-lobur committed Dec 6, 2021
1 parent fba6c3e commit 040d727
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/complete/replication.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
locals {
replication_enabled = length(var.s3_replication_rules) > 0
replication_rules = local.replication_enabled ? [
extra_rules = local.replication_enabled ? [
{
id = "replication-test-explicit-bucket"
status = "Enabled"
Expand All @@ -22,7 +22,7 @@ locals {
}
}
] : null
s3_replication_rules = local.replication_enabled ? local.replication_rules: null
s3_replication_rules = local.replication_enabled ? concat(var.s3_replication_rules, local.extra_rules) : null
}

module "s3_bucket_replication_target" {
Expand Down

0 comments on commit 040d727

Please sign in to comment.