Skip to content

Instantly share code, notes, and snippets.

@b1zantine
Created February 25, 2018 06:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save b1zantine/aac585776c344343b87b544411fb83c5 to your computer and use it in GitHub Desktop.
Save b1zantine/aac585776c344343b87b544411fb83c5 to your computer and use it in GitHub Desktop.
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