-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix EventBridge event structures. (#755)
According to the docs, the detail is always a JSON object: https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-events-structure.html Signed-off-by: David Calavera <[email protected]>
- Loading branch information
Showing
3 changed files
with
24 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 10 additions & 8 deletions
18
lambda-events/src/fixtures/example-eventbridge-event-obj.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
{ | ||
"version": "0", | ||
"id": "6a7e8feb-b491-4cf7-a9f1-bf3703467718", | ||
"id": "7bf73129-1428-4cd3-a780-95db273d1602", | ||
"detail-type": "EC2 Instance State-change Notification", | ||
"source": "aws.ec2", | ||
"account": "111122223333", | ||
"time": "2017-12-22T18:43:48Z", | ||
"region": "us-west-1", | ||
"account": "123456789012", | ||
"time": "2021-11-11T21:29:54Z", | ||
"region": "us-east-1", | ||
"resources": [ | ||
"arn:aws:ec2:us-west-1:123456789012:instance/i-1234567890abcdef0" | ||
"arn:aws:ec2:us-east-1:123456789012:instance/i-abcd1111" | ||
], | ||
"detail": "{\"a\":\"123\",\"b\":\"456\"}" | ||
} | ||
"detail": { | ||
"instance-id": "i-abcd1111", | ||
"state": "pending" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.