From 0e0c7c7afcbaacefc6d1917d1de5bb1642f44746 Mon Sep 17 00:00:00 2001 From: David Sibley Date: Tue, 14 May 2024 11:33:36 +0100 Subject: [PATCH] fixed security group references to retrieve correct output from remote state --- teams/example/linux_pipeline_vars.tf | 2 +- teams/example/windows_pipeline_vars.tf | 2 +- teams/example/windows_s3_test_pipeline_vars.tf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/teams/example/linux_pipeline_vars.tf b/teams/example/linux_pipeline_vars.tf index df8734b6..ac488be0 100644 --- a/teams/example/linux_pipeline_vars.tf +++ b/teams/example/linux_pipeline_vars.tf @@ -25,7 +25,7 @@ locals { description = "Description here" instance_types = ["t2.nano", "t3.micro"] name = join("", [local.team_name, "_AmazonLinux2"]) - security_group_ids = [data.terraform_remote_state.modernisation-platform-repo.outputs.image_builder_security_group_id] + security_group_ids = [data.terraform_remote_state.modernisation-platform-repo.outputs.image_builder_security_group_id.non_live_data] subnet_id = data.terraform_remote_state.modernisation-platform-repo.outputs.non_live_private_subnet_ids[0] terminate_on_fail = true } diff --git a/teams/example/windows_pipeline_vars.tf b/teams/example/windows_pipeline_vars.tf index b4749bdf..ce9ccbd9 100644 --- a/teams/example/windows_pipeline_vars.tf +++ b/teams/example/windows_pipeline_vars.tf @@ -25,7 +25,7 @@ locals { description = "Description here" instance_types = ["t2.nano", "t3.micro"] name = join("", [local.team_name, "_WindowsServer2022"]) - security_group_ids = [data.terraform_remote_state.modernisation-platform-repo.outputs.image_builder_security_group_id] + security_group_ids = [data.terraform_remote_state.modernisation-platform-repo.outputs.image_builder_security_group_id.non_live_data] subnet_id = data.terraform_remote_state.modernisation-platform-repo.outputs.non_live_private_subnet_ids[0] terminate_on_fail = true } diff --git a/teams/example/windows_s3_test_pipeline_vars.tf b/teams/example/windows_s3_test_pipeline_vars.tf index 15347bb0..6a6e21d8 100644 --- a/teams/example/windows_s3_test_pipeline_vars.tf +++ b/teams/example/windows_s3_test_pipeline_vars.tf @@ -31,7 +31,7 @@ locals { description = "Description here" instance_types = ["t3.medium"] name = join("", [local.team_name, "_WindowsServer2022_s3_test"]) - security_group_ids = [data.terraform_remote_state.modernisation-platform-repo.outputs.image_builder_security_group_id] + security_group_ids = [data.terraform_remote_state.modernisation-platform-repo.outputs.image_builder_security_group_id.non_live_data] subnet_id = data.terraform_remote_state.modernisation-platform-repo.outputs.non_live_private_subnet_ids[0] terminate_on_fail = true }