Skip to content

Commit

Permalink
chore: trigger both lambda functions in the stepfunction
Browse files Browse the repository at this point in the history
  • Loading branch information
Cupprum committed Jul 27, 2024
1 parent 49b162d commit 330c01f
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions infra/Ryanair.asl.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,31 @@
{
"Comment": "Monitoring the state of seats on next flight and informing user.",
"StartAt": "Lambda Invoke",
"StartAt": "Search for seats",
"States": {
"Lambda Invoke": {
"Search for seats": {
"Type": "Task",
"Resource": "arn:aws:states:::lambda:invoke",
"OutputPath": "$.Payload",
"Parameters": {
"FunctionName": "arn:aws:lambda:eu-central-1:666914038100:function:seatchecker:$LATEST",
"Payload": {}
},
"Retry": [
{
"ErrorEquals": [
"Lambda.ServiceException",
"Lambda.AWSLambdaException",
"Lambda.SdkClientException",
"Lambda.TooManyRequestsException"
],
"IntervalSeconds": 1,
"MaxAttempts": 3,
"BackoffRate": 2
}
],
"Next": "Send notification"
},
"Send notification": {
"Type": "Task",
"Resource": "arn:aws:states:::lambda:invoke",
"OutputPath": "$.Payload",
Expand Down

0 comments on commit 330c01f

Please sign in to comment.