Created
February 25, 2018 06:06
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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 | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"invocationTime": "2018-02-25T10:52:00Z" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment