File tree Expand file tree Collapse file tree 2 files changed +3
-30
lines changed Expand file tree Collapse file tree 2 files changed +3
-30
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,9 @@ resource "aws_iam_role" "ecs_autoscale_role" {
66 assume_role_policy = file (" ${ path . module } /files/iam/ecs_autoscale_iam_role.json" )
77}
88
9- resource "aws_iam_role_policy" "ecs_autoscale_role_policy" {
10- name = " ${ var . name_preffix } -ecs-autoscale-role-policy"
11- role = aws_iam_role. ecs_autoscale_role . id
12- policy = file (
13- " ${ path . module } /files/iam/ecs_autoscale_iam_role_policy.json" ,
14- )
9+ resource "aws_iam_role_policy_attachment" "ecs_autoscale_role_policy_attach" {
10+ role = aws_iam_role. ecs_autoscale_role . name
11+ policy_arn = " arn:aws:iam::aws:policy/aws-service-role/AWSApplicationAutoscalingECSServicePolicy"
1512}
1613
1714# ------------------------------------------------------------------------------
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments