From f1f8d3c47e4fee85b3e6759a683546ee27b7bf76 Mon Sep 17 00:00:00 2001 From: robertsweetman Date: Mon, 9 Oct 2023 17:17:53 +0100 Subject: [PATCH] specify non_live_data to match subnets --- modules/imagebuilder/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/imagebuilder/main.tf b/modules/imagebuilder/main.tf index 3f8a77738..f811386cb 100644 --- a/modules/imagebuilder/main.tf +++ b/modules/imagebuilder/main.tf @@ -93,7 +93,7 @@ resource "aws_imagebuilder_infrastructure_configuration" "this" { instance_profile_name = local.core_shared_services.imagebuilder_mp_tfstate.image_builder_profile description = var.description instance_types = var.infrastructure_configuration.instance_types - security_group_ids = values(local.core_shared_services.repo_tfstate.image_builder_security_group_id) + security_group_ids = values(local.core_shared_services.repo_tfstate.image_builder_security_group_id.non_live_data) subnet_id = local.core_shared_services.repo_tfstate.non_live_private_subnet_ids[0] terminate_instance_on_failure = true tags = local.tags