From 86a28715b2f3a14c234162fc76310f03fcb26ce2 Mon Sep 17 00:00:00 2001 From: devsjc Date: Thu, 9 Nov 2023 16:42:59 +0000 Subject: [PATCH] Moved for task --- terraform/modules/services/nwp_consumer/iam.tf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/terraform/modules/services/nwp_consumer/iam.tf b/terraform/modules/services/nwp_consumer/iam.tf index aee76183..99191c9c 100644 --- a/terraform/modules/services/nwp_consumer/iam.tf +++ b/terraform/modules/services/nwp_consumer/iam.tf @@ -22,6 +22,11 @@ resource "aws_iam_role" "create_task_role" { assume_role_policy = data.aws_iam_policy_document.ecs_assume_role_policy.json } +moved { + from = "consumer-${var.app_name}-iam-role" + to = aws_iam_role.create_task_role +} + resource "aws_iam_role_policy_attachment" "create_task_policy" { role = aws_iam_role.create_task_role.name policy_arn = "arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy"