Skip to content

Instantly share code, notes, and snippets.

@cooniur
Created April 20, 2015 21:43
Show Gist options
  • Select an option

  • Save cooniur/f839987045cab90de88c to your computer and use it in GitHub Desktop.

Select an option

Save cooniur/f839987045cab90de88c to your computer and use it in GitHub Desktop.
Ansible EC2 module output
{
"changed": true,
"instance_ids": [
"i-1a2b3c4d"
],
"instances": [
{
"ami_launch_index": "0",
"architecture": "x86_64",
"dns_name": "",
"ebs_optimized": false,
"groups": {
"sg-ec95d788": "myserver-SG"
},
"hypervisor": "xen",
"id": "i-1a2b3c4d",
"image_id": "ami-1ecae776",
"instance_type": "c3.large",
"kernel": null,
"key_name": "mykeypair-name",
"launch_time": "2015-04-20T21:35:34.000Z",
"placement": "us-east-1b",
"private_dns_name": "ip-10-151-2-100.mydomain.com aws.mydomain.com",
"private_ip": "10.151.2.100",
"public_dns_name": "",
"public_ip": null,
"ramdisk": null,
"region": "us-east-1",
"root_device_name": "/dev/xvda",
"root_device_type": "ebs",
"state": "running",
"state_code": 16,
"tags": {},
"tenancy": "default",
"virtualization_type": "hvm"
}
],
"invocation": {
"module_args": "",
"module_name": "ec2"
},
"tagged_instances": [
{
"ami_launch_index": "0",
"architecture": "x86_64",
"dns_name": "",
"ebs_optimized": false,
"groups": {
"sg-ec95d788": "myserver-SG"
},
"hypervisor": "xen",
"id": "i-1a2b3c4d",
"image_id": "ami-1ecae776",
"instance_type": "c3.large",
"kernel": null,
"key_name": "mykeypair-name",
"launch_time": "2015-04-20T21:35:34.000Z",
"placement": "us-east-1b",
"private_dns_name": "ip-10-151-2-100.mydomain.com aws.mydomain.com",
"private_ip": "10.151.2.100",
"public_dns_name": "",
"public_ip": null,
"ramdisk": null,
"region": "us-east-1",
"root_device_name": "/dev/xvda",
"root_device_type": "ebs",
"state": "running",
"state_code": 16,
"tags": {},
"tenancy": "default",
"virtualization_type": "hvm"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment