Below is a CloudWatch event from Trusted Advisor that contains these values I want to transform into human readable output:
{
"version":"0",
"id":"eda2dd4a-81df-d688-5f19-ef642ad7b486",
"detail-type":"Trusted Advisor Check Item Refresh Notification",
"source":"aws.trustedadvisor",
"account":"929292782238",
"time":"2018-07-10T01:06:15Z",
"region":"us-east-1",
"resources":[],
"detail":{
"check-name":"VPC Network Interfaces",
"check-item-detail":{
"Status":"Red",
"Current Usage":"5",
"Limit Name":"VPCs",
"Region":"us-west-2",
"Service":"VPC",
"Limit Amount":"5"},
"status":"ERROR",
"resource_id":"",
"uuid":"9ae2b76d-2a13-4174-9bd1-b8acfc381767"
}
}
{"service" : "$.detail.Service", "usage" : "$.detail.check-item-detail.Current Usage", "limit_amount" : "$.detail.Limit Amount"}