From f6999084c95c7bacc2b1f44b9c0bd99bc384b5fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Wei=C3=9Fe?= <66256922+daniel-weisse@users.noreply.github.com> Date: Fri, 3 May 2024 10:27:46 +0200 Subject: [PATCH] terraform: set empty default value for `additional_tags` (#3052) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Weiße --- .github/workflows/e2e-test.yml | 2 +- terraform/infrastructure/aws/variables.tf | 1 + terraform/infrastructure/azure/variables.tf | 1 + terraform/infrastructure/gcp/variables.tf | 1 + terraform/infrastructure/openstack/variables.tf | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index 71eb9f53a..983387bb0 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -286,6 +286,6 @@ jobs: GH_TOKEN: ${{ github.token }} uses: ./.github/actions/update_tfstate with: - name: terraform-state-${{ steps.e2e_test.outputs.namePrefix }} + name: terraform-state-${{ steps.e2e_test.outputs.namePrefix }} runID: ${{ github.run_id }} encryptionSecret: ${{ secrets.ARTIFACT_ENCRYPT_PASSWD }} diff --git a/terraform/infrastructure/aws/variables.tf b/terraform/infrastructure/aws/variables.tf index 7a1ea058e..67d0ec4d3 100644 --- a/terraform/infrastructure/aws/variables.tf +++ b/terraform/infrastructure/aws/variables.tf @@ -82,5 +82,6 @@ variable "enable_snp" { variable "additional_tags" { type = map(any) + default = {} description = "Additional tags that should be applied to created resources." } diff --git a/terraform/infrastructure/azure/variables.tf b/terraform/infrastructure/azure/variables.tf index 03fbf921e..577cdd4f0 100644 --- a/terraform/infrastructure/azure/variables.tf +++ b/terraform/infrastructure/azure/variables.tf @@ -92,5 +92,6 @@ variable "marketplace_image" { variable "additional_tags" { type = map(any) + default = {} description = "Additional tags that should be applied to created resources." } diff --git a/terraform/infrastructure/gcp/variables.tf b/terraform/infrastructure/gcp/variables.tf index 3be31c6af..601394a55 100644 --- a/terraform/infrastructure/gcp/variables.tf +++ b/terraform/infrastructure/gcp/variables.tf @@ -72,5 +72,6 @@ variable "cc_technology" { variable "additional_labels" { type = map(any) + default = {} description = "Additional labels that should be given to created recources." } diff --git a/terraform/infrastructure/openstack/variables.tf b/terraform/infrastructure/openstack/variables.tf index 4f68c7a4a..12242f08b 100644 --- a/terraform/infrastructure/openstack/variables.tf +++ b/terraform/infrastructure/openstack/variables.tf @@ -61,6 +61,7 @@ variable "floating_ip_pool_id" { variable "additional_tags" { type = list(any) + default = [] description = "Additional tags that should be applied to created resources." }