File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 33# ------------------------------------------------------------------------------
44resource "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
99data "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
1616resource "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-
You can’t perform that action at this time.
0 commit comments