Skip to content

Instantly share code, notes, and snippets.

@MrCoro
Created March 30, 2022 08:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrCoro/3e6d597af23897a146bb7dab1e34583d to your computer and use it in GitHub Desktop.
Save MrCoro/3e6d597af23897a146bb7dab1e34583d to your computer and use it in GitHub Desktop.
// EC2 event data json
{
"version": "0",
"id": "9f8ef89a-bffc-7f81-dab1-596bd6c2d684",
"detail-type": "EC2 Instance State-change Notification",
"source": "aws.ec2",
"account": "465732654097",
"time": "2022-03-29T09:19:21Z",
"region": "ap-southeast-2",
"resources": [
"arn:aws:ec2:ap-southeast-2:465732654097:instance/i-03c92032ad685f37b"
],
"detail": {
"instance-id": "i-03c92032ad685f37b",
"state": "terminated"
}
}
//RDS event data json
{
"version": "0",
"id": "c9598bd3-36eb-1289-6d01-768bdaacf8a0",
"detail-type": "RDS DB Cluster Event",
"source": "aws.rds",
"account": "465732654097",
"time": "2022-03-29T10:42:24Z",
"region": "ap-southeast-2",
"resources": [
"arn:aws:rds:ap-southeast-2:465732654097:cluster:database-1"
],
"detail": {
"EventCategories": [
"deletion"
],
"SourceType": "CLUSTER",
"SourceArn": "arn:aws:rds:ap-southeast-2:465732654097:cluster:database-1",
"Date": "2022-03-29T10:42:24.698Z",
"Message": "DB cluster deleted",
"SourceIdentifier": "database-1",
"EventID": "RDS-EVENT-0171"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment