From f5d3b094bfc77376dbd52dc6b2c9f95e534c6caf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Anic=CC=81?= Date: Mon, 3 Oct 2022 11:09:28 +0200 Subject: [PATCH] remove tf experimental feature It is no longer experimental. https://www.terraform.io/language/v1.3.x/upgrade-guides#concluding-the-optional-attributes-experiment https://www.terraform.io/language/expressions/type-constraints#optional-object-type-attributes --- node/terraform/modules/api/main.tf | 4 ---- node/terraform/modules/http-api/main.tf | 4 ---- node/terraform/modules/params/main.tf | 4 ---- 3 files changed, 12 deletions(-) diff --git a/node/terraform/modules/api/main.tf b/node/terraform/modules/api/main.tf index f4a8a2ac..e128befe 100644 --- a/node/terraform/modules/api/main.tf +++ b/node/terraform/modules/api/main.tf @@ -1,7 +1,3 @@ -terraform { - experiments = [module_variable_optional_attrs] -} - locals { domains = { http = trim("${var.custom_domain.http_subdomain}.${var.custom_domain.domain_name}", ".") diff --git a/node/terraform/modules/http-api/main.tf b/node/terraform/modules/http-api/main.tf index f49abc29..b3fcbcaa 100644 --- a/node/terraform/modules/http-api/main.tf +++ b/node/terraform/modules/http-api/main.tf @@ -6,7 +6,3 @@ locals { } ) } } - -terraform { - experiments = [module_variable_optional_attrs] -} diff --git a/node/terraform/modules/params/main.tf b/node/terraform/modules/params/main.tf index 08b6c855..291a1a44 100644 --- a/node/terraform/modules/params/main.tf +++ b/node/terraform/modules/params/main.tf @@ -7,10 +7,6 @@ locals { } } -terraform { - experiments = [module_variable_optional_attrs] -} - resource "aws_ssm_parameter" "param" { for_each = local.params name = "${var.path_prefix}/${each.value.name}"