Skip to content

Commit 70d2568

Browse files
authored
add existing glue access and athena access to ecs task role (#2008)
1 parent 56c360f commit 70d2568

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

terraform/modules/department/50-aws-iam-policies.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,8 @@ data "aws_iam_policy_document" "read_glue_scripts_and_mwaa_and_athena" {
475475
"athena:GetQueryResults",
476476
"athena:ListDatabases",
477477
"athena:ListTableMetadata",
478-
"athena:GetTableMetadata"
478+
"athena:GetTableMetadata",
479+
"athena:GetWorkGroup",
479480
]
480481
resources = ["*"]
481482
}

terraform/modules/department/50-aws-iam-roles.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,8 @@ resource "aws_iam_role_policy_attachment" "department_ecs_policy" {
152152
role = aws_iam_role.department_ecs_role.name
153153
policy_arn = aws_iam_policy.department_ecs_policy.arn
154154
}
155+
156+
resource "aws_iam_role_policy_attachment" "glue_access_attachment_to_ecs_role" {
157+
role = aws_iam_role.department_ecs_role.name
158+
policy_arn = aws_iam_policy.glue_access.arn
159+
}

0 commit comments

Comments
 (0)