From ed9922792bdba41200548b27d4a2d391806d8628 Mon Sep 17 00:00:00 2001 From: Miles Bardon Date: Mon, 13 Feb 2023 16:20:55 +0000 Subject: [PATCH] More specificity in lambda naming --- packages/terraform/development/stepfunctions.tf | 2 +- packages/terraform/lambda/main.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/terraform/development/stepfunctions.tf b/packages/terraform/development/stepfunctions.tf index a2a9a506..d711d1eb 100644 --- a/packages/terraform/development/stepfunctions.tf +++ b/packages/terraform/development/stepfunctions.tf @@ -1,5 +1,5 @@ resource "aws_iam_role" "iam_for_sfn" { - name = "iam_for_sfn" + name = "${var.app_name}-iam_for_sfn" assume_role_policy = jsonencode({ Version = "2012-10-17", diff --git a/packages/terraform/lambda/main.tf b/packages/terraform/lambda/main.tf index 640033cf..ecafbe6c 100644 --- a/packages/terraform/lambda/main.tf +++ b/packages/terraform/lambda/main.tf @@ -1,5 +1,5 @@ resource "aws_iam_policy" "lambda_logging" { - name = "${var.function_name}-lambda-logging" + name = "${var.app_name}-${var.function_name}-lambda-logging" path = "/" description = "IAM policy for logging from a lambda"