Skip to content

Instantly share code, notes, and snippets.

@theburningmonk
Last active February 24, 2020 16:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theburningmonk/3763878381f9b224dd17afad3181c7cf to your computer and use it in GitHub Desktop.
Save theburningmonk/3763878381f9b224dd17afad3181c7cf to your computer and use it in GitHub Desktop.
{
"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