Sample JSON Output Showing Array of all Resources

Updated 4 days ago by Totalcloud

Resource node picks a particular set of resource(s) belonging to a particular AWS service launched in a specific AWS Region.

The below sample JSON contains an array of all the resources and their attributes, which together act as the input for the next relevant node, at any stage of the workflow sequence

{
"data": [{
"AmiLaunchIndex": 0,
"ImageId": "ami-0de53d8958f4dcf80",
"InstanceId": "i-090c1246683bb2a54",
"InstanceType": "t2.micro",
"KeyName": "JenkinsNV",
"LaunchTime": "2019-05-07T05:53:36.000Z",
"Monitoring": {
"State": "disabled"
},
"Placement": {
"AvailabilityZone": "us-east-1d",
"GroupName": "",
"Tenancy": "default"
},
"PrivateDnsName": "ip-172-31-63-142.ec2.internal",
"PrivateIpAddress": "172.31.63.142",
"ProductCodes": [],
"PublicDnsName": "ec2-3-83-97-63.compute-1.amazonaws.com",
"PublicIpAddress": "3.83.97.63",
"State": {
"Code": 16,
"Name": "running"
},
"StateTransitionReason": "",
"SubnetId": "subnet-73322659",
"VpcId": "vpc-d0dea2b7",
"Architecture": "x86_64",
"BlockDeviceMappings": [{
"DeviceName": "/dev/xvda",
"Ebs": {
"AttachTime": "2019-03-27T04:33:16.000Z",
"DeleteOnTermination": true,
"Status": "attached",
"VolumeId": "vol-02a1455dff947eae0"
}
}],
"ClientToken": "",
"EbsOptimized": false,
"EnaSupport": true,
"Hypervisor": "xen",
"ElasticGpuAssociations": [],
"ElasticInferenceAcceleratorAssociations": [],
"NetworkInterfaces": [{
"Association": {
"IpOwnerId": "amazon",
"PublicDnsName": "ec2-3-83-97-63.compute-1.amazonaws.com",
"PublicIp": "3.83.97.63"
},
"Attachment": {
"AttachTime": "2019-03-27T04:33:16.000Z",
"AttachmentId": "eni-attach-0ab1798fc85c34ef2",
"DeleteOnTermination": true,
"DeviceIndex": 0,
"Status": "attached"
},
"Description": "",
"Groups": [{
"GroupName": "launch-wizard-1",
"GroupId": "sg-09b49b4b205c2e19e"
}],
"Ipv6Addresses": [],
"MacAddress": "12:6a:34:8c:cd:a4",
"NetworkInterfaceId": "eni-0b631c52908bdd401",
"OwnerId": "833539367270",
"PrivateDnsName": "ip-172-31-63-142.ec2.internal",
"PrivateIpAddress": "172.31.63.142",
"PrivateIpAddresses": [{
"Association": {
"IpOwnerId": "amazon",
"PublicDnsName": "ec2-3-83-97-63.compute-1.amazonaws.com",
"PublicIp": "3.83.97.63"
},
"Primary": true,
"PrivateDnsName": "ip-172-31-63-142.ec2.internal",
"PrivateIpAddress": "172.31.63.142"
}],
"SourceDestCheck": true,
"Status": "in-use",
"SubnetId": "subnet-73322659",
"VpcId": "vpc-d0dea2b7"
}],
"RootDeviceName": "/dev/xvda",
"RootDeviceType": "ebs",
"SecurityGroups": [{
"GroupName": "launch-wizard-1",
"GroupId": "sg-09b49b4b205c2e19e"
}],
"SourceDestCheck": true,
"Tags": [{
"Key": "Name",
"Value": "mongo"
}],
"VirtualizationType": "hvm",
"CpuOptions": {
"CoreCount": 1,
"ThreadsPerCore": 1
},
"CapacityReservationSpecification": {
"CapacityReservationPreference": "open"
},
"HibernationOptions": {
"Configured": false
},
"Licenses": []
},
{
"AmiLaunchIndex": 0,
"ImageId": "ami-0a313d6098716f372",
"InstanceId": "i-0cf6fkfc056038c13",
"InstanceType": "t2.micro",
"KeyName": "JenkinsNV",
"LaunchTime": "2019-05-13T00:01:04.000Z",
"Monitoring": {
"State": "disabled"
},
"Placement": {
"AvailabilityZone": "us-east-1d",
"GroupName": "",
"Tenancy": "default"
},
"PrivateDnsName": "ip-172-31-50-182.ec2.internal",
"PrivateIpAddress": "172.31.50.182",
"ProductCodes": [],
"PublicDnsName": "",
"State": {
"Code": 80,
"Name": "stopped"
},
"StateTransitionReason": "User initiated (2019-05-13 00:01:46 GMT)",
"SubnetId": "subnet-73322659",
"VpcId": "vpc-d0dea2b7",
"Architecture": "x86_64",
"BlockDeviceMappings": [{
"DeviceName": "/dev/sda1",
"Ebs": {
"AttachTime": "2019-04-08T03:34:34.000Z",
"DeleteOnTermination": true,
"Status": "attached",
"VolumeId": "vol-0bc49a5417b57d51c"
}
}],
"ClientToken": "",
"EbsOptimized": false,
"EnaSupport": true,
"Hypervisor": "xen",
"ElasticGpuAssociations": [],
"ElasticInferenceAcceleratorAssociations": [],
"NetworkInterfaces": [{
"Attachment": {
"AttachTime": "2019-04-08T03:34:33.000Z",
"AttachmentId": "eni-attach-05e76ff924d7be58d",
"DeleteOnTermination": true,
"DeviceIndex": 0,
"Status": "attached"
},
"Description": "",
"Groups": [{
"GroupName": "internal-service",
"GroupId": "sg-04d7b34d3d796d503"
}],
"Ipv6Addresses": [],
"MacAddress": "12:2f:04:79:d3:60",
"NetworkInterfaceId": "eni-0f8be01c02fb2f168",
"OwnerId": "833539367270",
"PrivateDnsName": "ip-172-31-50-182.ec2.internal",
"PrivateIpAddress": "172.31.50.182",
"PrivateIpAddresses": [{
"Primary": true,
"PrivateDnsName": "ip-172-31-50-182.ec2.internal",
"PrivateIpAddress": "172.31.50.182"
}],
"SourceDestCheck": true,
"Status": "in-use",
"SubnetId": "subnet-73322659",
"VpcId": "vpc-d0dea2b7"
}],
"RootDeviceName": "/dev/sda1",
"RootDeviceType": "ebs",
"SecurityGroups": [{
"GroupName": "internal-service",
"GroupId": "sg-04d7b34d3d796d503"
}],
"SourceDestCheck": true,
"StateReason": {
"Code": "Client.UserInitiatedShutdown",
"Message": "Client.UserInitiatedShutdown: User initiated shutdown"
},
"Tags": [{
"Key": "environment",
"Value": "development"
},
{
"Key": "Name",
"Value": "test"
}
],
"VirtualizationType": "hvm",
"CpuOptions": {
"CoreCount": 1,
"ThreadsPerCore": 1
},
"CapacityReservationSpecification": {
"CapacityReservationPreference": "open"
},
"HibernationOptions": {
"Configured": false
},
"Licenses": []
},
{
"AmiLaunchIndex": 0,
"ImageId": "ami-0de53d811118dcf80",
"InstanceId": "i-058b043d3b20fb483",
"InstanceType": "t2.micro",
"KeyName": "JenkinsNV",
"LaunchTime": "2019-05-10T04:22:38.000Z",
"Monitoring": {
"State": "disabled"
},
"Placement": {
"AvailabilityZone": "us-east-1d",
"GroupName": "",
"Tenancy": "default"
},
"PrivateDnsName": "ip-172-31-58-152.ec2.internal",
"PrivateIpAddress": "172.31.58.152",
"ProductCodes": [],
"PublicDnsName": "",
"State": {
"Code": 80,
"Name": "stopped"
},
"StateTransitionReason": "User initiated (2019-05-10 04:23:37 GMT)",
"SubnetId": "subnet-73322659",
"VpcId": "vpc-d0dea2b7",
"Architecture": "x86_64",
"BlockDeviceMappings": [{
"DeviceName": "/dev/xvda",
"Ebs": {
"AttachTime": "2019-05-10T04:22:39.000Z",
"DeleteOnTermination": true,
"Status": "attached",
"VolumeId": "vol-0463cb2f6a37175dd"
}
}],
"ClientToken": "",
"EbsOptimized": false,
"EnaSupport": true,
"Hypervisor": "xen",
"ElasticGpuAssociations": [],
"ElasticInferenceAcceleratorAssociations": [],
"NetworkInterfaces": [{
"Attachment": {
"AttachTime": "2019-05-10T04:22:38.000Z",
"AttachmentId": "eni-attach-0fb7b3bbfe1a6b642",
"DeleteOnTermination": true,
"DeviceIndex": 0,
"Status": "attached"
},
"Description": "",
"Groups": [{
"GroupName": "launch-wizard-4",
"GroupId": "sg-0bb00b479fe22c602"
}],
"Ipv6Addresses": [],
"MacAddress": "12:79:bd:db:49:ca",
"NetworkInterfaceId": "eni-0ae8bfed4c8f403cd",
"OwnerId": "833539367270",
"PrivateDnsName": "ip-172-31-58-152.ec2.internal",
"PrivateIpAddress": "172.31.58.152",
"PrivateIpAddresses": [{
"Primary": true,
"PrivateDnsName": "ip-172-31-58-152.ec2.internal",
"PrivateIpAddress": "172.31.58.152"
}],
"SourceDestCheck": true,
"Status": "in-use",
"SubnetId": "subnet-73322659",
"VpcId": "vpc-d0dea2b7"
}],
"RootDeviceName": "/dev/xvda",
"RootDeviceType": "ebs",
"SecurityGroups": [{
"GroupName": "launch-wizard-4",
"GroupId": "sg-0bb00b479fe22c602"
}],
"SourceDestCheck": true,
"StateReason": {
"Code": "Client.UserInitiatedShutdown",
"Message": "Client.UserInitiatedShutdown: User initiated shutdown"
},
"Tags": [],
"VirtualizationType": "hvm",
"CpuOptions": {
"CoreCount": 1,
"ThreadsPerCore": 1
},
"CapacityReservationSpecification": {
"CapacityReservationPreference": "open"
},
"HibernationOptions": {
"Configured": false
},
"Licenses": []
},
{
"AmiLaunchIndex": 0,
"ImageId": "ami-be07c6c1",
"InstanceId": "i-03e1810337a7be41bf",
"InstanceType": "t2.micro",
"KeyName": "JenkinsNV",
"LaunchTime": "2019-04-26T12:17:58.000Z",
"Monitoring": {
"State": "disabled"
},
"Placement": {
"AvailabilityZone": "us-east-1a",
"GroupName": "",
"Tenancy": "default"
},
"PrivateDnsName": "ip-172-31-6-93.ec2.internal",
"PrivateIpAddress": "172.31.6.93",
"ProductCodes": [{
"ProductCodeId": "7eyp7o9i35afqvpvvh5gujt8w",
"ProductCodeType": "marketplace"
}],
"PublicDnsName": "ec2-52-90-166-164.compute-1.amazonaws.com",
"PublicIpAddress": "52.90.166.164",
"State": {
"Code": 16,
"Name": "running"
},
"StateTransitionReason": "",
"SubnetId": "subnet-422aee0b",
"VpcId": "vpc-d0dea2b7",
"Architecture": "x86_64",
"BlockDeviceMappings": [{
"DeviceName": "/dev/sda1",
"Ebs": {
"AttachTime": "2018-05-28T14:06:34.000Z",
"DeleteOnTermination": false,
"Status": "attached",
"VolumeId": "vol-042f52b4118cb9fb4"
}
}],
"ClientToken": "152751636437121820",
"EbsOptimized": false,
"EnaSupport": true,
"Hypervisor": "xen",
"ElasticGpuAssociations": [],
"ElasticInferenceAcceleratorAssociations": [],
"NetworkInterfaces": [{
"Association": {
"IpOwnerId": "amazon",
"PublicDnsName": "ec2-52-90-166-164.compute-1.amazonaws.com",
"PublicIp": "52.90.166.164"
},
"Attachment": {
"AttachTime": "2018-05-28T14:06:34.000Z",
"AttachmentId": "eni-attach-18ec0b10",
"DeleteOnTermination": true,
"DeviceIndex": 0,
"Status": "attached"
},
"Description": "Primary network interface",
"Groups": [{
"GroupName": "wordpress",
"GroupId": "sg-5a7d3312"
}],
"Ipv6Addresses": [],
"MacAddress": "0a:b1:64:20:2e:84",
"NetworkInterfaceId": "eni-c17bc550",
"OwnerId": "833539367270",
"PrivateDnsName": "ip-172-31-6-93.ec2.internal",
"PrivateIpAddress": "172.31.6.93",
"PrivateIpAddresses": [{
"Association": {
"IpOwnerId": "amazon",
"PublicDnsName": "ec2-52-90-166-164.compute-1.amazonaws.com",
"PublicIp": "52.90.166.164"
},
"Primary": true,
"PrivateDnsName": "ip-172-31-6-93.ec2.internal",
"PrivateIpAddress": "172.31.6.93"
}],
"SourceDestCheck": true,
"Status": "in-use",
"SubnetId": "subnet-422aee0b",
"VpcId": "vpc-d0dea2b7"
}],
"RootDeviceName": "/dev/sda1",
"RootDeviceType": "ebs",
"SecurityGroups": [{
"GroupName": "wordpress",
"GroupId": "sg-5a7d3312"
}],
"SourceDestCheck": true,
"Tags": [{
"Key": "Name",
"Value": "blog2"
}],
"VirtualizationType": "hvm",
"CpuOptions": {
"CoreCount": 1,
"ThreadsPerCore": 1
},
"CapacityReservationSpecification": {
"CapacityReservationPreference": "open"
},
"HibernationOptions": {
"Configured": false
},
"Licenses": []
}
],
"type": "array",
"partial": false
}


How did we do?