From 98cc99826bde74f14e40b096a382489217db6bbc Mon Sep 17 00:00:00 2001 From: Rob Lazzurs Date: Wed, 15 Jul 2020 05:35:41 +0100 Subject: [PATCH] Passing the label context to regional module (#30) In the last change I did not add passing the label context to the regional module which causes the IAM role to have a name of -iam_for_lambda rather than adding the further context to make sure it is unique per environment. --- main.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/main.tf b/main.tf index 11b82c8..c11a5a8 100644 --- a/main.tf +++ b/main.tf @@ -101,4 +101,5 @@ resource "aws_iam_policy" "beanstalk_policy" { module "regional" { source = "./modules/regional" autospotting_lambda_arn = module.aws_lambda_function.arn + label_context = module.label.context }