Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Amazon State Language (ASL) for created a state machine to schedule a one-time invocation of a Lambda function.
{
"Comment": "Invoking Lambda at arbitrary time.",
"StartAt": "CountDownTimer",
"States": {
"CountDownTimer": {
"Type": "Wait",
"TimestampPath": "$.invocationTime",
"Next": "InvokeLambda"
},
"InvokeLambda": {
"Type": "Task",
"Resource": "arn:aws:lambda:REGION:ACCOUNT_ID:function:FUNCTION_NAME",
"End": true
}
}
}
{
"invocationTime": "2018-02-25T10:52:00Z"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.