From ac268d3d53fd5392db2ab678b4f81b9571acb88d Mon Sep 17 00:00:00 2001 From: briskt <3172830+briskt@users.noreply.github.com> Date: Wed, 27 Mar 2024 12:56:43 -0600 Subject: [PATCH] add conditional on id-sync config profile --- terraform/070-id-sync/main.tf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/terraform/070-id-sync/main.tf b/terraform/070-id-sync/main.tf index 0c608ef..cf955d9 100644 --- a/terraform/070-id-sync/main.tf +++ b/terraform/070-id-sync/main.tf @@ -171,6 +171,8 @@ resource "aws_iam_role_policy" "this" { * Create AppConfig configuration profile */ resource "aws_appconfig_configuration_profile" "this" { + count = var.app_id == "" ? 0 : 1 + application_id = var.app_id name = "${var.app_name}-${var.app_env}" location_uri = "hosted"