diff --git a/state_machines/email_form_fill/state_machine.json b/state_machines/email_form_fill/state_machine.json index 542ef83..3a785cb 100644 --- a/state_machines/email_form_fill/state_machine.json +++ b/state_machines/email_form_fill/state_machine.json @@ -223,4 +223,4 @@ "Type": "Parallel" } } - } \ No newline at end of file +} \ No newline at end of file diff --git a/state_machines/email_form_fill/state_machine.tf b/state_machines/email_form_fill/state_machine.tf index 8c53340..f54a9d4 100644 --- a/state_machines/email_form_fill/state_machine.tf +++ b/state_machines/email_form_fill/state_machine.tf @@ -71,5 +71,5 @@ resource "aws_iam_role_policy" "sfn_lambda_invoke_access" { resource "aws_sfn_state_machine" "sfn_state_machine" { name = "esta-rfp-form-filler" role_arn = aws_iam_role.iam_for_sfn.arn - definition = jsonencode("${path.module}/state_machine.json") + definition = jsonencode(file("${path.module}/state_machine.json")) }