aws-serverless-airline-booking icon indicating copy to clipboard operation
aws-serverless-airline-booking copied to clipboard

[Booking] Update Step Functions to use a better `name` field

Open heitorlessa opened this issue 5 years ago • 0 comments

Currently, Step Functions is triggered via process_booking mutation in AppSync. AppSync resolver creates the following payload that is used as an input for Step Functions:

{
  "outboundFlightId": "1688a4f6-69dd-4590-833e-f349384df465",
  "customerId": "d749f277-0950-4ad6-ab04-98988721e475",
  "chargeId": "ch_1F57JxF4aIiftV70vM1BRI5Z",
  "bookingTable": "Booking-2pa2xn3qzzdi7ntbhdozirkmiy-twitch",
  "flightTable": "Flight-2pa2xn3qzzdi7ntbhdozirkmiy-twitch",
  "name": "7e5ecef7-84c4-4836-9500-2115c4175421",
  "createdAt": "2019-08-08T08:50:06.362Z"
}

name is the Step Functions Execution ID which is used in tracing annotations, structured logging and also stored in Booking Table.

heitorlessa avatar Aug 26 '19 09:08 heitorlessa