-
-
Save maimai-swap/8cbfafdfcf4d78e32b8c to your computer and use it in GitHub Desktop.
aws ec2 describe-instances --output json
This file contains hidden or 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
{ | |
"Reservations": [ | |
{ | |
"OwnerId": "XXXXXXXXXXXX", | |
"ReservationId": "r-XXXXXXXX", | |
"Groups": [], | |
"Instances": [ | |
{ | |
"Monitoring": { | |
"State": "disabled" | |
}, | |
"PublicDnsName": null, | |
"RootDeviceType": "ebs", | |
"State": { | |
"Code": 80, | |
"Name": "stopped" | |
}, | |
"EbsOptimized": false, | |
"LaunchTime": "2014-10-29T01:09:37.000Z", | |
"PrivateIpAddress": "10.0.1.1", | |
"ProductCodes": [], | |
"VpcId": "vpc-xxxxxxxxxxx", | |
"StateTransitionReason": "User initiated (2014-10-29 01:51:45 GMT)", | |
"InstanceId": "i-XXXXXXXX", | |
"ImageId": "ami-XXXXXXXX", | |
"PrivateDnsName": "ip-10-0-0-1.ap-northeast-1.compute.internal", | |
"KeyName": "lockad", | |
"SecurityGroups": [ | |
{ | |
"GroupName": "server-securityG", | |
"GroupId": "sg-XXXXXXXX" | |
} | |
], | |
"ClientToken": "epheM1414049430039", | |
"SubnetId": "subnet-XXXXXXXX", | |
"InstanceType": "t2.micro", | |
"NetworkInterfaces": [ | |
{ | |
"Status": "in-use", | |
"MacAddress": "0a:73:78:d9:da:69", | |
"SourceDestCheck": true, | |
"VpcId": "vpc-XXXXXXXX", | |
"Description": "Primary network interface", | |
"NetworkInterfaceId": "eni-XXXXXXXX", | |
"PrivateIpAddresses": [ | |
{ | |
"PrivateDnsName": "ip-10-0-0-1.ap-northeast-1.compute.internal", | |
"Primary": true, | |
"PrivateIpAddress": "10.0.1.1" | |
} | |
], | |
"PrivateDnsName": "ip-10-0-0-1.ap-northeast-1.compute.internal", | |
"Attachment": { | |
"Status": "attached", | |
"DeviceIndex": 0, | |
"DeleteOnTermination": true, | |
"AttachmentId": "eni-attach-XXXXXXXX", | |
"AttachTime": "2014-10-23T07:30:30.000Z" | |
}, | |
"Groups": [ | |
{ | |
"GroupName": "server-securityG", | |
"GroupId": "sg-XXXXXXXX" | |
} | |
], | |
"SubnetId": "subnet-XXXXXXXX", | |
"OwnerId": "644259412635", | |
"PrivateIpAddress": "10.0.1.1" | |
} | |
], | |
"SourceDestCheck": true, | |
"Placement": { | |
"Tenancy": "default", | |
"GroupName": null, | |
"AvailabilityZone": "ap-northeast-1c" | |
}, | |
"Hypervisor": "xen", | |
"BlockDeviceMappings": [ | |
{ | |
"DeviceName": "/dev/xvda", | |
"Ebs": { | |
"Status": "attached", | |
"DeleteOnTermination": true, | |
"VolumeId": "vol-XXXXXXXX", | |
"AttachTime": "2014-10-23T07:30:33.000Z" | |
} | |
} | |
], | |
"Architecture": "x86_64", | |
"StateReason": { | |
"Message": "Client.UserInitiatedShutdown: User initiated shutdown", | |
"Code": "Client.UserInitiatedShutdown" | |
}, | |
"RootDeviceName": "/dev/xvda", | |
"VirtualizationType": "hvm", | |
"Tags": [ | |
{ | |
"Value": "ForDynamoTest", | |
"Key": "Name" | |
} | |
], | |
"AmiLaunchIndex": 0 | |
} | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment