Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
max-lobur committed Dec 6, 2021
1 parent c8da08a commit fba6c3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/complete/replication.tf
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
locals {
replication_enabled = length(var.s3_replication_rules) > 0
extra_rules = local.replication_enabled ? [
replication_rules = local.replication_enabled ? [
{
id = "replication-test-explicit-bucket"
status = "Enabled"
prefix = "/extra"
priority = 5
destination_bucket = module.s3_bucket_replication_target_extra[0].bucket_arn
destination = null
},
{
id = "replication-test-metrics"
Expand All @@ -21,7 +22,7 @@ locals {
}
}
] : null
s3_replication_rules = local.replication_enabled ? concat(var.s3_replication_rules, local.extra_rules) : null
s3_replication_rules = local.replication_enabled ? local.replication_rules: null
}

module "s3_bucket_replication_target" {
Expand Down
1 change: 1 addition & 0 deletions examples/complete/replication.us-east-2.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ s3_replication_rules = [
id = "replication-test"
status = "Enabled"
prefix = "/main"
destination = null
}
]

0 comments on commit fba6c3e

Please sign in to comment.