Last active
February 24, 2020 16:56
-
-
Save theburningmonk/3763878381f9b224dd17afad3181c7cf to your computer and use it in GitHub Desktop.
This file contains hidden or 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": "How long AWS Lambda keeps idle functions around?", | |
"StartAt": "FindIdleTimeout", | |
"States": { | |
"FindIdleTimeout": { | |
"Type": "Task", | |
"Resource": "arn:aws:lambda:us-east-1:{account_id}:function:when-will-i-coldstart-dev-find-idle-timeout", | |
"Next": "RepeatOrNot" | |
}, | |
"RepeatOrNot": { | |
"Type" : "Choice", | |
"Choices": [ | |
{ | |
"Variable": "$.coldstarts", | |
"NumericEquals": 10, | |
"Next": "Done" | |
} | |
], | |
"Default": "Wait" | |
}, | |
"Wait": { | |
"Type": "Wait", | |
"SecondsPath": "$.interval", | |
"Next": "FindIdleTimeout" | |
}, | |
"Done": { | |
"Type" : "Succeed" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment