From 1e039af90dfecb55dd249455083a3bb53bcea9b8 Mon Sep 17 00:00:00 2001 From: shmuel Date: Wed, 20 Sep 2023 22:41:02 +0300 Subject: [PATCH] Fix configuring existing role bug --- iam.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iam.tf b/iam.tf index a3b8a40..6ea4902 100644 --- a/iam.tf +++ b/iam.tf @@ -1,6 +1,6 @@ locals { role_name = var.create && var.create_role ? coalesce(var.role_name, var.name, "*") : null - application_role_name = var.create_application_role ? coalesce(var.application_role_name, "${var.name}-application-role", "*") : null + application_role_name = coalesce(var.application_role_name, "${var.name}-application-role", "*") create_application_role_policy = var.create && var.create_application_role_policy add_backup_policies = local.enable_s3_backup && var.s3_backup_use_existing_role add_kinesis_source_policy = var.create && var.create_role && local.is_kinesis_source && var.kinesis_source_use_existing_role