Skip to content

Commit

Permalink
attach task policy to task role
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiwara committed May 8, 2023
1 parent fd77de4 commit 6cacb76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/terraform/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ resource "aws_iam_policy" "ecs-task" {
})
}

resource "aws_iam_role_policy_attachment" "ecs-task" {
role = aws_iam_role.ecs-task.name
policy_arn = aws_iam_policy.ecs-task.arn
}

resource "aws_iam_role" "ecs-task-execution" {
name = "${var.project}-ecs-task-execution"
Expand Down

0 comments on commit 6cacb76

Please sign in to comment.