PS C:\> aws ec2 describe-instances
{
“Reservations”: [
{
“Groups”: [],
“Instances”: [
{
“AmiLaunchIndex”: 0,
“ImageId”: “ami-0646204ed750711f5”,
“InstanceId”: “i-07781d27bf720c5db”,
“InstanceType”: “t2.micro”,
“KeyName”: “basic-network”,
“LaunchTime”: “2018-12-21T23:11:41.000Z”,
“Monitoring”: {
“State”: “disabled”
},
“Placement”: {
“AvailabilityZone”: “ap-northeast-1a”,
“GroupName”: “”,
“Tenancy”: “default”
},
“PrivateDnsName”: “ip-172-xx-xx-94.ap-northeast-1.compute.internal”,
“PrivateIpAddress”: “172.xx.xx.94”,
“ProductCodes”: [],
“PublicDnsName”: “”,
“State”: {
“Code”: 80,
“Name”: “stopped”
},
“StateTransitionReason”: “User initiated (2018-12-23 01:01:11 GMT)”,
“SubnetId”: “subnet-653b2a2c”,
“VpcId”: “vpc-dc2376bb”,
“Architecture”: “x86_64”,
“BlockDeviceMappings”: [
{
“DeviceName”: “/dev/sda1”,
“Ebs”: {
“AttachTime”: “2018-12-21T23:11:41.000Z”,
“DeleteOnTermination”: true,
“Status”: “attached”,
“VolumeId”: “vol-094b5de281275233d”
}
}
],
“ClientToken”: “”,
“EbsOptimized”: false,
“Hypervisor”: “xen”,
“NetworkInterfaces”: [
{
“Attachment”: {
“AttachTime”: “2018-12-21T23:11:41.000Z”,
“AttachmentId”: “eni-attach-0855afc43d3a73263”,
“DeleteOnTermination”: true,
“DeviceIndex”: 0,
“Status”: “attached”
},
“Description”: “”,
“Groups”: [
{
“GroupName”: “launch-wizard-10”,
“GroupId”: “sg-0f854918497e22364”
}
],
“Ipv6Addresses”: [],
“MacAddress”: “06:9e:b6:52:dd:fa”,
“NetworkInterfaceId”: “eni-0f71ba7e901bfb995”,
“OwnerId”: “295332586563”,
“PrivateDnsName”: “ip-172-xx-xx-94.ap-northeast-1.compute.internal”,
“PrivateIpAddress”: “172.xx.xx.94”,
“PrivateIpAddresses”: [
{
“Primary”: true,
“PrivateDnsName”: “ip-172-xx-xx-94.ap-northeast-1.compute.internal”,
“PrivateIpAddress”: “172.xx.xx.94”
}
],
“SourceDestCheck”: true,
“Status”: “in-use”,
“SubnetId”: “subnet-653b2a2c”,
“VpcId”: “vpc-dc2376bb”
}
],
“RootDeviceName”: “/dev/sda1”,
“RootDeviceType”: “ebs”,
“SecurityGroups”: [
{
“GroupName”: “launch-wizard-10”,
“GroupId”: “sg-0f854918497e22364”
}
],
“SourceDestCheck”: true,
“StateReason”: {
“Code”: “Client.UserInitiatedShutdown”,
“Message”: “Client.UserInitiatedShutdown: User initiated shutdown”
},
“Tags”: [
{
“Key”: “Name”,
“Value”: “centos6”
}
],
“VirtualizationType”: “hvm”,
“CpuOptions”: {
“CoreCount”: 1,
“ThreadsPerCore”: 1
},
“CapacityReservationSpecification”: {
“CapacityReservationPreference”: “open”
},
“HibernationOptions”: {
“Configured”: false
}
}
],
“OwnerId”: “295332586563”,
“ReservationId”: “r-049eac652b765c205”
},
{
“Groups”: [],
“Instances”: [
{
“AmiLaunchIndex”: 0,
“ImageId”: “ami-0358ac7a36387646f”,
“InstanceId”: “i-025cb0be42e38aca3”,
“InstanceType”: “t2.micro”,
“KeyName”: “basic-network”,
“LaunchTime”: “2019-02-11T01:43:41.000Z”,
“Monitoring”: {
“State”: “disabled”
},
“Placement”: {
“AvailabilityZone”: “ap-northeast-1a”,
“GroupName”: “”,
“Tenancy”: “default”
},
“Platform”: “windows”,
“PrivateDnsName”: “ip-172-xx-xx-160.ap-northeast-1.compute.internal”,
“PrivateIpAddress”: “172.xx.xx.160”,
“ProductCodes”: [],
“PublicDnsName”: “ec2-3-xx-xx-203.ap-northeast-1.compute.amazonaws.com”,
“PublicIpAddress”: “3.xx.xx.203”,
“State”: {
“Code”: 16,
“Name”: “running”
},
“StateTransitionReason”: “”,
“SubnetId”: “subnet-653b2a2c”,
“VpcId”: “vpc-dc2376bb”,
“Architecture”: “x86_64”,
“BlockDeviceMappings”: [
{
“DeviceName”: “/dev/sda1”,
“Ebs”: {
“AttachTime”: “2019-02-11T01:43:42.000Z”,
“DeleteOnTermination”: true,
“Status”: “attached”,
“VolumeId”: “vol-04296c21cbf230817”
}
}
],
“ClientToken”: “”,
“EbsOptimized”: false,
“EnaSupport”: true,
“Hypervisor”: “xen”,
“NetworkInterfaces”: [
{
“Association”: {
“IpOwnerId”: “amazon”,
“PublicDnsName”: “ec2-3-xx-xx-203.ap-northeast-1.compute.amazonaws.com”,
“PublicIp”: “3.xx.xx.203”
},
“Attachment”: {
“AttachTime”: “2019-02-11T01:43:41.000Z”,
“AttachmentId”: “eni-attach-0bdd37d37539c8170”,
“DeleteOnTermination”: true,
“DeviceIndex”: 0,
“Status”: “attached”
},
“Description”: “”,
“Groups”: [
{
“GroupName”: “launch-wizard-11”,
“GroupId”: “sg-0b3f1667e793e05de”
}
],
“Ipv6Addresses”: [],
“MacAddress”: “06:cd:10:ae:fa:6e”,
“NetworkInterfaceId”: “eni-08f325e62d334988b”,
“OwnerId”: “295332586563”,
“PrivateDnsName”: “ip-172-xx-xx-160.ap-northeast-1.compute.internal”,
“PrivateIpAddress”: “172.xx.xx.160”,
“PrivateIpAddresses”: [
{
“Association”: {
“IpOwnerId”: “amazon”,
“PublicDnsName”: “ec2-3-xx-xx-203.ap-northeast-1.compute.amazonaws.com”,
“PublicIp”: “3.xx.xx.203”
},
“Primary”: true,
“PrivateDnsName”: “ip-172-xx-xx-160.ap-northeast-1.compute.internal”,
“PrivateIpAddress”: “172.xx.xx.160”
}
],
“SourceDestCheck”: true,
“Status”: “in-use”,
“SubnetId”: “subnet-653b2a2c”,
“VpcId”: “vpc-dc2376bb”
}
],
“RootDeviceName”: “/dev/sda1”,
“RootDeviceType”: “ebs”,
“SecurityGroups”: [
{
“GroupName”: “launch-wizard-11”,
“GroupId”: “sg-0b3f1667e793e05de”
}
],
“SourceDestCheck”: true,
“Tags”: [
{
“Key”: “Name”,
“Value”: “Windows”
}
],
“VirtualizationType”: “hvm”,
“CpuOptions”: {
“CoreCount”: 1,
“ThreadsPerCore”: 1
},
“CapacityReservationSpecification”: {
“CapacityReservationPreference”: “open”
},
“HibernationOptions”: {
“Configured”: false
}
}
],
“OwnerId”: “295332586563”,
“ReservationId”: “r-0cf9e498e624df7eb”
},
{
“Groups”: [],
“Instances”: [
{
“AmiLaunchIndex”: 0,
“ImageId”: “ami-6b0d5f0d”,
“InstanceId”: “i-0d994f3fcd9b15309”,
“InstanceType”: “t2.micro”,
“KeyName”: “basic-network”,
“LaunchTime”: “2019-02-11T01:43:57.000Z”,
“Monitoring”: {
“State”: “disabled”
},
“Placement”: {
“AvailabilityZone”: “ap-northeast-1a”,
“GroupName”: “”,
“Tenancy”: “default”
},
“PrivateDnsName”: “ip-172-31-xx-38.ap-northeast-1.compute.internal”,
“PrivateIpAddress”: “172.31.xx.38”,
“ProductCodes”: [],
“PublicDnsName”: “ec2-52-199-xx-25.ap-northeast-1.compute.amazonaws.com”,
“PublicIpAddress”: “52.199.xx.25”,
“State”: {
“Code”: 16,
“Name”: “running”
},
“StateTransitionReason”: “”,
“SubnetId”: “subnet-653b2a2c”,
“VpcId”: “vpc-dc2376bb”,
“Architecture”: “x86_64”,
“BlockDeviceMappings”: [
{
“DeviceName”: “/dev/sda1”,
“Ebs”: {
“AttachTime”: “2018-10-23T12:30:00.000Z”,
“DeleteOnTermination”: true,
“Status”: “attached”,
“VolumeId”: “vol-0c670bcc4823fd0c8”
}
}
],
“ClientToken”: “”,
“EbsOptimized”: false,
“EnaSupport”: true,
“Hypervisor”: “xen”,
“NetworkInterfaces”: [
{
“Association”: {
“IpOwnerId”: “amazon”,
“PublicDnsName”: “ec2-52-199-xx-25.ap-northeast-1.compute.amazonaws.com”,
“PublicIp”: “52.199.xx.25”
},
“Attachment”: {
“AttachTime”: “2018-10-23T12:29:59.000Z”,
“AttachmentId”: “eni-attach-0291f7882efee8486”,
“DeleteOnTermination”: true,
“DeviceIndex”: 0,
“Status”: “attached”
},
“Description”: “”,
“Groups”: [
{
“GroupName”: “launch-wizard-9”,
“GroupId”: “sg-04384c2d5aa72eeb8”
}
],
“Ipv6Addresses”: [],
“MacAddress”: “06:1d:6f:79:f9:c8”,
“NetworkInterfaceId”: “eni-0b42b24b80c8cb879”,
“OwnerId”: “295332586563”,
“PrivateDnsName”: “ip-172-31-xx-38.ap-northeast-1.compute.internal”,
“PrivateIpAddress”: “172.31.xx.38”,
“PrivateIpAddresses”: [
{
“Association”: {
“IpOwnerId”: “amazon”,
“PublicDnsName”: “ec2-52-199-xx-25.ap-northeast-1.compute.amazonaws.com”,
“PublicIp”: “52.199.xx.25”
},
“Primary”: true,
“PrivateDnsName”: “ip-172-31-xx-38.ap-northeast-1.compute.internal”,
“PrivateIpAddress”: “172.31.xx.38”
}
],
“SourceDestCheck”: true,
“Status”: “in-use”,
“SubnetId”: “subnet-653b2a2c”,
“VpcId”: “vpc-dc2376bb”
}
],
“RootDeviceName”: “/dev/sda1”,
“RootDeviceType”: “ebs”,
“SecurityGroups”: [
{
“GroupName”: “launch-wizard-9”,
“GroupId”: “sg-04384c2d5aa72eeb8”
}
],
“SourceDestCheck”: true,
“Tags”: [
{
“Key”: “Name”,
“Value”: “redhat7”
}
],
“VirtualizationType”: “hvm”,
“CpuOptions”: {
“CoreCount”: 1,
“ThreadsPerCore”: 1
},
“HibernationOptions”: {
“Configured”: false
}
}
],
“OwnerId”: “295332586563”,
“ReservationId”: “r-09c07a3a22006e32a”
}
]
}
PS C:\>
|