Skip to content

Commit 6db8ca5

Browse files
authored
Merge pull request #3 from shmick/shmick-patch-1
Remove interpolation-only expressions
2 parents d169594 + d3237d3 commit 6db8ca5

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

main.tf

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
#------------------------------------------------------------------------------
44
resource "aws_iam_role" "scheduled_task_cw_event_role" {
55
name = "${var.name_preffix}-st-cw-role"
6-
assume_role_policy = "${file("${path.module}/files/iam/scheduled_task_cw_event_role_assume_role_policy.json")}"
6+
assume_role_policy = file("${path.module}/files/iam/scheduled_task_cw_event_role_assume_role_policy.json")
77
}
88

99
data "template_file" "scheduled_task_cw_event_role_cloudwatch_policy" {
10-
template = "${file("${path.module}/files/iam/scheduled_task_cw_event_role_cloudwatch_policy.json")}"
10+
template = file("${path.module}/files/iam/scheduled_task_cw_event_role_cloudwatch_policy.json")
1111
vars = {
1212
TASK_EXECUTION_ROLE_ARN = var.ecs_execution_task_role_arn
1313
}
1414
}
1515

1616
resource "aws_iam_role_policy" "scheduled_task_cw_event_role_cloudwatch_policy" {
1717
name = "${var.name_preffix}-st-cw-policy"
18-
role = "${aws_iam_role.scheduled_task_cw_event_role.id}"
19-
policy = "${data.template_file.scheduled_task_cw_event_role_cloudwatch_policy.rendered}"
18+
role = aws_iam_role.scheduled_task_cw_event_role.id
19+
policy = data.template_file.scheduled_task_cw_event_role_cloudwatch_policy.rendered
2020
}
2121

2222
#------------------------------------------------------------------------------
@@ -57,4 +57,3 @@ resource "aws_cloudwatch_event_target" "ecs_scheduled_task" {
5757
}
5858
}
5959
}
60-

0 commit comments

Comments
 (0)