Sample SNS message for an EC2 Instance
This is a sample JSON response from AWS Config, sent via SNS. This message will be stored in an AWS Config Staging record before being processed by the Create CI automation process to add a Cloud Services - Virtual Machine record to your CMDB. You can use this sample JSON to test the Create AWS Config Staging webhook.
Copy
{
"recordVersion":"1.3",
"messageType":"ConfigurationItemChangeNotification",
"configurationItemDiff":{
"changedProperties":{
},
"changeType":"CREATE"
},
"notificationCreationTime":"2020-06-29T02:44:07.192Z",
"configurationItem":{
"relatedEvents":[
],
"relationships":[
{
"resourceId":"eni-0123456789",
"resourceType":"AWS::EC2::NetworkInterface",
"name":"Contains NetworkInterface"
},
{
"resourceId":"sg-01123456789",
"resourceType":"AWS::EC2::SecurityGroup",
"name":"Is associated with SecurityGroup"
},
{
"resourceId":"subnet-a0ccc19e",
"resourceType":"AWS::EC2::Subnet",
"name":"Is contained in Subnet"
},
{
"resourceId":"vol-069736e00b70a0948",
"resourceType":"AWS::EC2::Volume",
"name":"Is attached to Volume"
},
{
"resourceId":"vpc-ba848ec0",
"resourceType":"AWS::EC2::VPC",
"name":"Is contained in Vpc"
}
],
"configuration":{
"amiLaunchIndex":0,
"imageId":"ami-6869aa05",
"instanceId":"i-01123456789",
"instanceType":"t2.small",
"keyName":"aws-stuff",
"launchTime":"2020-06-29T02:41:54.000Z",
"monitoring":{
"state":"disabled"
},
"placement":{
"availabilityZone":"us-east-1e",
"groupName":"",
"tenancy":"default"
},
"privateDnsName":"ip-172-0-0-0.ec2.internal",
"privateIpAddress":"172.0.0.0",
"productCodes":[
],
"publicDnsName":"ec2-35-153-79-147.compute-1.amazonaws.com",
"publicIpAddress":"35.0.0.0",
"state":{
"code":16,
"name":"running"
},
"stateTransitionReason":"",
"subnetId":"subnet-a0ccc19e",
"vpcId":"vpc-ba848ec0",
"architecture":"x86_64",
"blockDeviceMappings":[
{
"deviceName":"/dev/xvda",
"ebs":{
"attachTime":"2020-06-29T02:41:55.000Z",
"deleteOnTermination":true,
"status":"attached",
"volumeId":"vol-069736e00b70a0948"
}
}
],
"clientToken":"SC-49-EC2In-GIQR0XO1Y3GI",
"ebsOptimized":false,
"enaSupport":true,
"hypervisor":"xen",
"elasticGpuAssociations":[
],
"elasticInferenceAcceleratorAssociations":[
],
"networkInterfaces":[
{
"association":{
"ipOwnerId":"amazon",
"publicDnsName":"ec2-35-153-79-147.compute-1.amazonaws.com",
"publicIp":"35.0.0.0"
},
"attachment":{
"attachTime":"2020-06-29T02:41:54.000Z",
"attachmentId":"eni-attach-0658d3e3e45501bf5",
"deleteOnTermination":true,
"deviceIndex":0,
"status":"attached"
},
"description":"",
"groups":[
{
"groupName":"SC-49123456789-pp-k123456789-InstanceSecurityGroup-17123456789",
"groupId":"sg-01123456789"
}
],
"ipv6Addresses":[
],
"macAddress":"06:2b:75:7a:34:97",
"networkInterfaceId":"eni-0123456789",
"ownerId":"49123456789",
"privateDnsName":"ip-172-0-0-0.ec2.internal",
"privateIpAddress":"172.0.0.0",
"privateIpAddresses":[
{
"association":{
"ipOwnerId":"amazon",
"publicDnsName":"ec2-35-153-79-147.compute-1.amazonaws.com",
"publicIp":"35.0.0.0"
},
"primary":true,
"privateDnsName":"ip-172-0-0-0.ec2.internal",
"privateIpAddress":"172.0.0.0"
}
],
"sourceDestCheck":true,
"status":"in-use",
"subnetId":"subnet-a0ccc19e",
"vpcId":"vpc-ba848ec0",
"interfaceType":"interface"
}
],
"rootDeviceName":"/dev/xvda",
"rootDeviceType":"ebs",
"securityGroups":[
{
"groupName":"SC-49123456789-pp-k123456789-InstanceSecurityGroup-17123456789",
"groupId":"sg-01123456789"
}
],
"sourceDestCheck":true,
"tags":[
{
"key":"aws:cloudformation:logical-id",
"value":"EC2Instance"
},
{
"key":"aws:cloudformation:stack-name",
"value":"SC-49123456789-pp-k123456789"
},
{
"key":"aws:servicecatalog:portfolioArn",
"value":"arn:aws:catalog:us-east-1:49123456789:portfolio/port-cfy123456789"
},
{
"key":"aws:servicecatalog:provisioningArtifactIdentifier",
"value":"pa-abjk1234567498"
},
{
"key":"aws:servicecatalog:provisionedProductArn",
"value":"arn:aws:servicecatalog:us-east-1:49123456789:stack/grey-salamander/pp-k123456789"
},
{
"key":"aws:servicecatalog:provisioningPrincipalArn",
"value":"arn:aws:iam::49123456789:user/Henri.bryce"
},
{
"key":"aws:servicecatalog:productArn",
"value":"arn:aws:catalog:us-east-1:49123456789:product/prod-qy123465789"
},
{
"key":"instance-purpose",
"value":"autoscaling"
},
{
"key":"aws:cloudformation:stack-id",
"value":"arn:aws:cloudformation:us-east-1:49123456789:stack/SC-49123456789-pp-k123456789/0f26f4f0-b9b2-11ea-a346-12c1d85cca19"
}
],
"virtualizationType":"hvm",
"cpuOptions":{
"coreCount":1,
"threadsPerCore":1
},
"capacityReservationSpecification":{
"capacityReservationPreference":"open"
},
"hibernationOptions":{
"configured":false
},
"licenses":[
],
"metadataOptions":{
"state":"applied",
"httpTokens":"optional",
"httpPutResponseHopLimit":1,
"httpEndpoint":"enabled"
}
},
"supplementaryConfiguration":{
},
"tags":{
"aws:servicecatalog:productArn":"arn:aws:catalog:us-east-1:49123456789:product/prod-qy123465789",
"aws:cloudformation:stack-name":"SC-49123456789-pp-k123456789",
"aws:servicecatalog:provisioningPrincipalArn":"arn:aws:iam::49123456789:user/Henri.bryce",
"aws:cloudformation:stack-id":"arn:aws:cloudformation:us-east-1:49123456789:stack/SC-49123456789-pp-k123456789/0f26f4f0-b9b2-11ea-a346-12c1d85cca19",
"aws:cloudformation:logical-id":"EC2Instance",
"aws:servicecatalog:provisioningArtifactIdentifier":"pa-abjk1234567498",
"aws:servicecatalog:portfolioArn":"arn:aws:catalog:us-east-1:49123456789:portfolio/port-cfy123456789",
"instance-purpose":"autoscaling",
"aws:servicecatalog:provisionedProductArn":"arn:aws:servicecatalog:us-east-1:49123456789:stack/grey-salamander/pp-k123456789"
},
"configurationItemVersion":"1.3",
"configurationItemCaptureTime":"2020-06-29T02:44:06.023Z",
"configurationStateId":1593398646023,
"awsAccountId":"49123456789",
"configurationItemStatus":"ResourceDiscovered",
"resourceType":"AWS::EC2::Instance",
"resourceId":"i-01123456789",
"ARN":"arn:aws:ec2:us-east-1:49123456789:instance/i-01123456789",
"awsRegion":"us-east-1",
"availabilityZone":"us-east-1e",
"configurationStateMd5Hash":"",
"resourceCreationTime":"2020-06-29T02:41:54.000Z"
}
}