From c933e4a06749ea7cf7fc4a8a683e75d6b87fb8d8 Mon Sep 17 00:00:00 2001 From: chenga Date: Tue, 4 Jun 2024 02:03:31 +0300 Subject: [PATCH] improve role name --- shared.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared.tf b/shared.tf index 8a6b725..885b61e 100644 --- a/shared.tf +++ b/shared.tf @@ -24,7 +24,7 @@ module "secrets_manager" { module "lambda_role" { source = "./modules/role" - role_name = local.api_triggered_function_name + role_name = "${local.resource_name_pattern}-role" store_secret_in_secrets_manager = var.store_secret_in_secrets_manager secrets_arns = var.store_secret_in_secrets_manager ? module.secrets_manager[0].secrets_arns : [] tags = var.tags