Skip to content

Commit

Permalink
update key
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbalcaen committed Apr 19, 2024
1 parent 036f254 commit 1e0bbac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions state_machines/email_form_fill/state_machine.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ resource "aws_sfn_state_machine" "sfn_state_machine" {
"Body" : {
"sender_email.$" : "$.Records[0].ses.mail.source",
"destination_email.$" : "$.Records[0].ses.mail.destination",
"email_id.$" : "$.Records[0].ses.mail.source",
"email_id.$" : "$.Records[0].ses.mail.messageId",
"prompts" : [
{
"key" : "A",
Expand All @@ -70,8 +70,7 @@ resource "aws_sfn_state_machine" "sfn_state_machine" {
]
},
"Bucket" : var.workspace_bucket_name,
"Key" : "MyData"
},
"Key.$" : "States.Format('{}.email', $.Records[0].ses.mail.messageId)", },
"Resource" : "arn:aws:states:::aws-sdk:s3:putObject"
},
"Lambda Invoke" : {
Expand Down

0 comments on commit 1e0bbac

Please sign in to comment.