From 96256f61d83880f42418f3938827a99298bec90d Mon Sep 17 00:00:00 2001 From: robertsweetman Date: Mon, 9 Oct 2023 12:32:29 +0100 Subject: [PATCH] set security_group_ids to [0] value --- 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 1c8dec772..1980fd782 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 = [local.core_shared_services.repo_tfstate.image_builder_security_group_id] + security_group_ids = [local.core_shared_services.repo_tfstate.image_builder_security_group_id[0]] subnet_id = local.core_shared_services.repo_tfstate.non_live_private_subnet_ids[0] terminate_instance_on_failure = true tags = local.tags