aws-samples / aws-batch-runtime-monitoring

Serverless application to monitor an AWS Batch architecture through dashboards.
MIT No Attribution
56 stars 16 forks source link

Change use of index in state machines to retrieve fields from CW events generated events #2

Closed perifaws closed 2 years ago

perifaws commented 2 years ago

The state machines use indices to retrieve fields of interest such as the AZ, Instance ID and Instance Type instead. The indices of the fields can vary in the nested arrays which cause errors in the step functions and impacts the ability to add data the dashboards as well as the instance Amazon DynamoDB table.

A solution is to use JSON Path with transient Pass states to retrieve the data instead of using indices that can var