Skip to content

Instantly share code, notes, and snippets.

@huksley
Created June 18, 2019 10:35
Show Gist options
  • Save huksley/7150448813560abf84fd27ef0fe21428 to your computer and use it in GitHub Desktop.
Save huksley/7150448813560abf84fd27ef0fe21428 to your computer and use it in GitHub Desktop.
{
"StartAt": "Order Hotel",
"States": {
"Order Hotel": {
"Type": "Task",
"Comment": "Call microservice to order hotel",
"Resource": "arn:aws:lambda:eu-west-1:849707207651:function:travellr-dev-hotel-order",
"Parameters": {
"tripDates.$": "$.tripDates",
"hotelStars.$": "$.hotelStars"
},
"ResultPath": "$.orderHotelResult",
"Next": "Order Flight"
},
"Order Flight": {
"Type": "Task",
"Resource": "arn:aws:lambda:eu-west-1:849707207651:function:travellr-dev-flight-order",
"Parameters": {
"tripDates.$": "$.tripDates"
},
"ResultPath": "$.orderFlightResult",
"Next": "Rent Car"
},
"Rent Car": {
"Type": "Task",
"Resource": "arn:aws:lambda:eu-west-1:849707207651:function:travellr-dev-car-rent",
"Parameters": {
"tripDates.$": "$.tripDates"
},
"ResultPath": "$.rentCarResult",
"End": true
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment