Use waitForTaskToken for Fargate tasks #187
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Previously we would do something in synchronous Fargate tasks, which have no capacity for passing data back to the state machine.
This changes to using a async
waitForTaskTokenconfig, which allows the Fargate task to pass arbitrary data back to the state machine upon completion. These negates the previous need to write similar data to S3, and then immediately read that data back from S3 in a Lambda function, just to make it available within the state machine.The main thing to review here is ensuring that the
outputofsend_task_successthat's now happening within the Fargate code matches the previous result of the now-removed-task-outputLambda functions. And thatsend_task_failureis being used in a way that makes sense.The
FtpCopyTaskOutputLambdaErrorAlarmalarm has also been removed, since it was based on the now-removed function, and we've decided there's no need to find an alternative.Closes #183