Skip to content

Commit 3454ead

Browse files
committed
fix: add role name instead of role object and fix policy attachment resource name
1 parent 2e18353 commit 3454ead

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ecs_infra_lb_role.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ data "aws_iam_policy_document" "ecs_infrastructure_trust_policy" {
1616
}
1717
}
1818

19-
resource "aws_iam_role_policy_attachment" "cognito" {
20-
role = aws_iam_role.ecs_infra_lb_role
19+
resource "aws_iam_role_policy_attachment" "ecs_infra_policy" {
20+
role = aws_iam_role.ecs_infra_lb_role.name
2121
policy_arn = "arn:aws:iam::aws:policy/AmazonECSInfrastructureRolePolicyForLoadBalancers"
2222
}

0 commit comments

Comments
 (0)