From 116f79be982b02c3f14dd92a8694d214dc81b3f5 Mon Sep 17 00:00:00 2001 From: Melissa Greenbaum <69476188+magreenbaum@users.noreply.github.com> Date: Sat, 13 Jan 2024 16:01:28 -0500 Subject: [PATCH] fix: Fixed routing rule condition (#270) --- examples/complete-legacy/README.md | 2 +- examples/complete-legacy/versions.tf | 2 +- main.tf | 2 +- modules/notification/README.md | 2 +- modules/notification/versions.tf | 2 +- modules/object/README.md | 2 +- modules/object/versions.tf | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/complete-legacy/README.md b/examples/complete-legacy/README.md index 24e69dd6..de3e39bf 100644 --- a/examples/complete-legacy/README.md +++ b/examples/complete-legacy/README.md @@ -13,7 +13,7 @@ Once this configuration is created, you need to use the newer version of this mo | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 0.13.1 | +| [terraform](#requirement\_terraform) | >= 1.0 | | [aws](#requirement\_aws) | ~> 3.69.0 | | [random](#requirement\_random) | >= 2.0 | diff --git a/examples/complete-legacy/versions.tf b/examples/complete-legacy/versions.tf index 25ef87e2..5172cdf7 100644 --- a/examples/complete-legacy/versions.tf +++ b/examples/complete-legacy/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 0.13.1" + required_version = ">= 1.0" required_providers { aws = { diff --git a/main.tf b/main.tf index e087362c..fdea2a29 100644 --- a/main.tf +++ b/main.tf @@ -138,7 +138,7 @@ resource "aws_s3_bucket_website_configuration" "this" { content { dynamic "condition" { - for_each = [try([routing_rule.value.condition], [])] + for_each = try([routing_rule.value.condition], []) content { http_error_code_returned_equals = try(routing_rule.value.condition["http_error_code_returned_equals"], null) diff --git a/modules/notification/README.md b/modules/notification/README.md index d93f19ac..fb8b7aa6 100644 --- a/modules/notification/README.md +++ b/modules/notification/README.md @@ -7,7 +7,7 @@ Creates S3 bucket notification resource with all supported types of deliveries: | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 0.13.1 | +| [terraform](#requirement\_terraform) | >= 1.0 | | [aws](#requirement\_aws) | >= 3.74 | ## Providers diff --git a/modules/notification/versions.tf b/modules/notification/versions.tf index 538b9152..ff97a040 100644 --- a/modules/notification/versions.tf +++ b/modules/notification/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 0.13.1" + required_version = ">= 1.0" required_providers { aws = { diff --git a/modules/object/README.md b/modules/object/README.md index ea2405c8..4f02b571 100644 --- a/modules/object/README.md +++ b/modules/object/README.md @@ -7,7 +7,7 @@ Creates S3 bucket objects with different configurations. | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 0.13.1 | +| [terraform](#requirement\_terraform) | >= 1.0 | | [aws](#requirement\_aws) | >= 3.75 | ## Providers diff --git a/modules/object/versions.tf b/modules/object/versions.tf index 8a65df68..3ff49692 100644 --- a/modules/object/versions.tf +++ b/modules/object/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 0.13.1" + required_version = ">= 1.0" required_providers { aws = {