From 5d4cb8113a759a08c2e4c5b6edf3e09f1d408b01 Mon Sep 17 00:00:00 2001 From: BanaSeba Date: Fri, 27 Dec 2024 15:20:27 +0100 Subject: [PATCH] Fixed policy name for logging --- apps/api.nameguard.io/terraform/modules/lambda_api/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api.nameguard.io/terraform/modules/lambda_api/main.tf b/apps/api.nameguard.io/terraform/modules/lambda_api/main.tf index 3443d3ca..b8c04ec3 100644 --- a/apps/api.nameguard.io/terraform/modules/lambda_api/main.tf +++ b/apps/api.nameguard.io/terraform/modules/lambda_api/main.tf @@ -40,7 +40,7 @@ data "aws_iam_policy_document" "lambda_logging" { } resource "aws_iam_policy" "lambda_logging" { - name = "lambda_logging-${var.env}" + name = "nameguard_lambda_logging-${var.env}" path = "/" description = "IAM policy for logging from a lambda" policy = data.aws_iam_policy_document.lambda_logging.json