<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<ul dir="auto">
<li>core</li>
</ul>
<h5 dir="auto">ANSIBLE VERSION</h5>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.1.0
  config file = /home/hpepejau/Desktop/MyProjects/ansible-role-hpe_serviceguard_lx/ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.13 (default, May 10 2017, 20:04:28) [GCC 6.3.1 20161221 (Red Hat 6.3.1-1)]
"><pre class="notranslate"><code class="notranslate">ansible 2.3.1.0
  config file = /home/hpepejau/Desktop/MyProjects/ansible-role-hpe_serviceguard_lx/ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.13 (default, May 10 2017, 20:04:28) [GCC 6.3.1 20161221 (Red Hat 6.3.1-1)]

</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">N/A</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Ansible is run on Fedora 25<br>
Inventory servers are RedHat 7</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Using delegate_fact doesn't work when I have the connection to servers tunneled through SSH tunnel.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto">Example hosts inventory</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[nodes]
10.2.55.2 ansible_user=root ansible_host=127.0.0.1 ansible_port=50035
10.2.55.3 ansible_user=root ansible_host=127.0.0.1 ansible_port=50036

[quorumserver]
10.2.55.66 ansible_user=root ansible_host=127.0.0.1 ansible_port=50034"><pre class="notranslate"><code class="notranslate">[nodes]
10.2.55.2 ansible_user=root ansible_host=127.0.0.1 ansible_port=50035
10.2.55.3 ansible_user=root ansible_host=127.0.0.1 ansible_port=50036

[quorumserver]
10.2.55.66 ansible_user=root ansible_host=127.0.0.1 ansible_port=50034
</code></pre></div>
<p dir="auto">Example playbook</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- hosts: nodes
  tasks:
  - name: Gather facts from QS (regardless of limit or tags)
    setup: filter=ansible_distribution
    delegate_to: &quot;{{item}}&quot;
    delegate_facts: true
    with_items: &quot;{{groups['quorumserver']}}&quot;
  - debug: var=hostvars[groups['quorumserver'][0]].ansible_distribution"><pre class="notranslate"><code class="notranslate">- hosts: nodes
  tasks:
  - name: Gather facts from QS (regardless of limit or tags)
    setup: filter=ansible_distribution
    delegate_to: "{{item}}"
    delegate_facts: true
    with_items: "{{groups['quorumserver']}}"
  - debug: var=hostvars[groups['quorumserver'][0]].ansible_distribution
</code></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [nodes] *******************************************************************

TASK [Gathering Facts] *********************************************************
ok: [10.2.55.3]
ok: [10.2.55.2]

TASK [Gather facts from QS (regardless of limit or tags)] *******************************************************************
ok: [10.2.55.2 -&gt; 10.2.55.66]
ok: [10.2.55.3 -&gt; 10.2.55.66]

TASK [debug] *******************************************************************
ok: [10.2.55.2] =&gt; {
    &quot;changed&quot;: false, 
    &quot;hostvars[groups['quorumserver'][0]].ansible_distribution&quot;: &quot;RedHat&quot;
}
ok: [10.2.55.3] =&gt; {
    &quot;changed&quot;: false, 
    &quot;hostvars[groups['quorumserver'][0]].ansible_distribution&quot;: &quot;RedHat&quot;
}"><pre class="notranslate"><code class="notranslate">PLAY [nodes] *******************************************************************

TASK [Gathering Facts] *********************************************************
ok: [10.2.55.3]
ok: [10.2.55.2]

TASK [Gather facts from QS (regardless of limit or tags)] *******************************************************************
ok: [10.2.55.2 -&gt; 10.2.55.66]
ok: [10.2.55.3 -&gt; 10.2.55.66]

TASK [debug] *******************************************************************
ok: [10.2.55.2] =&gt; {
    "changed": false, 
    "hostvars[groups['quorumserver'][0]].ansible_distribution": "RedHat"
}
ok: [10.2.55.3] =&gt; {
    "changed": false, 
    "hostvars[groups['quorumserver'][0]].ansible_distribution": "RedHat"
}
</code></pre></div>
<h5 dir="auto">ACTUAL RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [nodes] *******************************************************************

TASK [Gathering Facts] *********************************************************
ok: [10.2.55.2]
ok: [10.2.55.3]

TASK [Gather facts from QS (regardless of limit or tags)] **********************
ok: [10.2.55.3 -&gt; 10.2.55.66] =&gt; (item=10.2.55.66)
ok: [10.2.55.2 -&gt; 10.2.55.66] =&gt; (item=10.2.55.66)

TASK [debug] *******************************************************************
ok: [10.2.55.2] =&gt; {
    &quot;changed&quot;: false, 
    &quot;hostvars[groups['quorumserver'][0]].ansible_distribution&quot;: &quot;VARIABLE IS NOT DEFINED!&quot;
}
ok: [10.2.55.3] =&gt; {
    &quot;changed&quot;: false, 
    &quot;hostvars[groups['quorumserver'][0]].ansible_distribution&quot;: &quot;VARIABLE IS NOT DEFINED!&quot;
}"><pre class="notranslate"><code class="notranslate">PLAY [nodes] *******************************************************************

TASK [Gathering Facts] *********************************************************
ok: [10.2.55.2]
ok: [10.2.55.3]

TASK [Gather facts from QS (regardless of limit or tags)] **********************
ok: [10.2.55.3 -&gt; 10.2.55.66] =&gt; (item=10.2.55.66)
ok: [10.2.55.2 -&gt; 10.2.55.66] =&gt; (item=10.2.55.66)

TASK [debug] *******************************************************************
ok: [10.2.55.2] =&gt; {
    "changed": false, 
    "hostvars[groups['quorumserver'][0]].ansible_distribution": "VARIABLE IS NOT DEFINED!"
}
ok: [10.2.55.3] =&gt; {
    "changed": false, 
    "hostvars[groups['quorumserver'][0]].ansible_distribution": "VARIABLE IS NOT DEFINED!"
}
</code></pre></div>
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">ec2</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<p dir="auto">works:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible --version
ansible 2.3.3.0
  config file = /home/tessa/.ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.12 (default, Nov 20 2017, 18:23:56) [GCC 5.4.0 20160609]"><pre class="notranslate"><code class="notranslate">$ ansible --version
ansible 2.3.3.0
  config file = /home/tessa/.ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.12 (default, Nov 20 2017, 18:23:56) [GCC 5.4.0 20160609]
</code></pre></div>
<p dir="auto">broken:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible --version
ansible 2.4.2.0
  config file = /home/tessa/.ansible.cfg
  configured module search path = [u'/home/tessa/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 2.7.12 (default, Nov 20 2017, 18:23:56) [GCC 5.4.0 20160609]"><pre class="notranslate"><code class="notranslate">$ ansible --version
ansible 2.4.2.0
  config file = /home/tessa/.ansible.cfg
  configured module search path = [u'/home/tessa/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 2.7.12 (default, Nov 20 2017, 18:23:56) [GCC 5.4.0 20160609]
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">N/A</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Ubuntu 16.04 amd64 on ec2.</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Discovered that using multiple count_tag entries + exact_count to prevent spinning up duplicate instances in ec2 no longer works in ansible 2.4.x, and that it'll just spin up a duplicates even when the tags match. Downgrading to ansible 2.3.x solves the problem.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto">run the following task from localhost multiple times:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- ec2:
    region: &quot;us-west-2&quot;
    instance_tags:
      Name: test
      Prefix: dev
    exact_count: 1
    count_tag:
      Name: test
      Prefix: dev
    key_name: &quot;{{ ssh_key }}&quot;
    instance_type: t2.micro
    image: ami-45224425
    vpc_subnet_id: &quot;{{ vpc_subnet_id }}"><pre class="notranslate">- <span class="pl-ent">ec2</span>:
    <span class="pl-ent">region</span>: <span class="pl-s"><span class="pl-pds">"</span>us-west-2<span class="pl-pds">"</span></span>
    <span class="pl-ent">instance_tags</span>:
      <span class="pl-ent">Name</span>: <span class="pl-s">test</span>
      <span class="pl-ent">Prefix</span>: <span class="pl-s">dev</span>
    <span class="pl-ent">exact_count</span>: <span class="pl-c1">1</span>
    <span class="pl-ent">count_tag</span>:
      <span class="pl-ent">Name</span>: <span class="pl-s">test</span>
      <span class="pl-ent">Prefix</span>: <span class="pl-s">dev</span>
    <span class="pl-ent">key_name</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ ssh_key }}<span class="pl-pds">"</span></span>
    <span class="pl-ent">instance_type</span>: <span class="pl-s">t2.micro</span>
    <span class="pl-ent">image</span>: <span class="pl-s">ami-45224425</span>
    <span class="pl-ent">vpc_subnet_id</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ vpc_subnet_id }}</span></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">only spin up one instance.</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">spins up multiple instances.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [aws_instances : ec2] ****************************************************************************************************************************************************************************************
task path: /home/tessa/ansible/roles/aws_instances/tasks/main.yml:2
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/cloud/amazon/ec2.py
&lt;127.0.0.1&gt; ESTABLISH LOCAL CONNECTION FOR USER: tessa
&lt;127.0.0.1&gt; EXEC /bin/sh -c 'echo ~ &amp;&amp; sleep 0'
&lt;127.0.0.1&gt; EXEC /bin/sh -c '( umask 77 &amp;&amp; mkdir -p &quot;` echo /home/tessa/.ansible/tmp/ansible-tmp-1515707342.82-54897923708400 `&quot; &amp;&amp; echo ansible-tmp-1515707342.82-54897923708400=&quot;` echo /home/tessa/.ansible/tmp/ansible-tmp-1515707342.82-54897923708400 `&quot; ) &amp;&amp; sleep 0'
&lt;127.0.0.1&gt; PUT /tmp/tmpPn7vWS TO /home/tessa/.ansible/tmp/ansible-tmp-1515707342.82-54897923708400/ec2.py
&lt;127.0.0.1&gt; EXEC /bin/sh -c 'chmod u+x /home/tessa/.ansible/tmp/ansible-tmp-1515707342.82-54897923708400/ /home/tessa/.ansible/tmp/ansible-tmp-1515707342.82-54897923708400/ec2.py &amp;&amp; sleep 0'
&lt;127.0.0.1&gt; EXEC /bin/sh -c '/usr/bin/python /home/tessa/.ansible/tmp/ansible-tmp-1515707342.82-54897923708400/ec2.py; rm -rf &quot;/home/tessa/.ansible/tmp/ansible-tmp-1515707342.82-54897923708400/&quot; &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0'
changed: [localhost] =&gt; {
    &quot;changed&quot;: true, 
    &quot;instance_ids&quot;: [
        &quot;i-04992feeb756b46c5&quot;
    ], 
    &quot;instances&quot;: [
        {
            &quot;ami_launch_index&quot;: &quot;0&quot;, 
            &quot;architecture&quot;: &quot;x86_64&quot;, 
            &quot;block_device_mapping&quot;: {
                &quot;/dev/sda1&quot;: {
                    &quot;delete_on_termination&quot;: true, 
                    &quot;status&quot;: &quot;attaching&quot;, 
                    &quot;volume_id&quot;: &quot;vol-07a2b13e9a727b7cc&quot;
                }
            }, 
            &quot;dns_name&quot;: &quot;&quot;, 
            &quot;ebs_optimized&quot;: false, 
            &quot;groups&quot;: {
                &quot;sg-8b2faff0&quot;: &quot;default&quot;
            }, 
            &quot;hypervisor&quot;: &quot;xen&quot;, 
            &quot;id&quot;: &quot;i-04992feeb756b46c5&quot;, 
            &quot;image_id&quot;: &quot;ami-45224425&quot;, 
            &quot;instance_type&quot;: &quot;t2.micro&quot;, 
            &quot;kernel&quot;: null, 
            &quot;key_name&quot;: &quot;ssh-key&quot;, 
            &quot;launch_time&quot;: &quot;2018-01-11T21:49:05.000Z&quot;, 
            &quot;placement&quot;: &quot;us-west-2c&quot;, 
            &quot;private_dns_name&quot;: &quot;ip-172-23-30-176.us-west-2.compute.internal&quot;, 
            &quot;private_ip&quot;: &quot;172.23.30.176&quot;, 
            &quot;public_dns_name&quot;: &quot;&quot;, 
            &quot;public_ip&quot;: null, 
            &quot;ramdisk&quot;: null, 
            &quot;region&quot;: &quot;us-west-2&quot;, 
            &quot;root_device_name&quot;: &quot;/dev/sda1&quot;, 
            &quot;root_device_type&quot;: &quot;ebs&quot;, 
            &quot;state&quot;: &quot;pending&quot;, 
            &quot;state_code&quot;: 0, 
            &quot;tags&quot;: {
                &quot;Name&quot;: &quot;test&quot;, 
                &quot;Prefix&quot;: &quot;dev&quot;
            }, 
            &quot;tenancy&quot;: &quot;default&quot;, 
            &quot;virtualization_type&quot;: &quot;hvm&quot;
        }
    ], 
    &quot;invocation&quot;: {
        &quot;module_args&quot;: {
            &quot;assign_public_ip&quot;: false, 
            &quot;aws_access_key&quot;: null, 
            &quot;aws_secret_key&quot;: null, 
            &quot;count&quot;: 1, 
            &quot;count_tag&quot;: &quot;{'Prefix': 'dev', 'Name': 'test'}&quot;, 
            &quot;ebs_optimized&quot;: false, 
            &quot;ec2_url&quot;: null, 
            &quot;exact_count&quot;: 1, 
            &quot;group&quot;: null, 
            &quot;group_id&quot;: null, 
            &quot;id&quot;: null, 
            &quot;image&quot;: &quot;ami-45224425&quot;, 
            &quot;instance_ids&quot;: null, 
            &quot;instance_initiated_shutdown_behavior&quot;: null, 
            &quot;instance_profile_name&quot;: null, 
            &quot;instance_tags&quot;: {
                &quot;Name&quot;: &quot;test&quot;, 
                &quot;Prefix&quot;: &quot;dev&quot;
            }, 
            &quot;instance_type&quot;: &quot;t2.micro&quot;, 
            &quot;kernel&quot;: null, 
            &quot;key_name&quot;: &quot;bench-tools&quot;, 
            &quot;monitoring&quot;: false, 
            &quot;network_interfaces&quot;: null, 
            &quot;placement_group&quot;: null, 
            &quot;private_ip&quot;: null, 
            &quot;profile&quot;: null, 
            &quot;ramdisk&quot;: null, 
            &quot;region&quot;: &quot;us-west-2&quot;, 
            &quot;security_token&quot;: null, 
            &quot;source_dest_check&quot;: true, 
            &quot;spot_launch_group&quot;: null, 
            &quot;spot_price&quot;: null, 
            &quot;spot_type&quot;: &quot;one-time&quot;, 
            &quot;spot_wait_timeout&quot;: &quot;600&quot;, 
            &quot;state&quot;: &quot;present&quot;, 
            &quot;tenancy&quot;: &quot;default&quot;, 
            &quot;termination_protection&quot;: null, 
            &quot;user_data&quot;: null, 
            &quot;validate_certs&quot;: true, 
            &quot;volumes&quot;: null, 
            &quot;vpc_subnet_id&quot;: &quot;vpc_subnet_id&quot;, 
            &quot;wait&quot;: false, 
            &quot;wait_timeout&quot;: &quot;300&quot;, 
            &quot;zone&quot;: null
        }
    }, 
    &quot;tagged_instances&quot;: [
        {
            &quot;ami_launch_index&quot;: &quot;0&quot;, 
            &quot;architecture&quot;: &quot;x86_64&quot;, 
            &quot;block_device_mapping&quot;: {
                &quot;/dev/sda1&quot;: {
                    &quot;delete_on_termination&quot;: true, 
                    &quot;status&quot;: &quot;attaching&quot;, 
                    &quot;volume_id&quot;: &quot;vol-07a2b13e9a727b7cc&quot;
                }
            }, 
            &quot;dns_name&quot;: &quot;&quot;, 
            &quot;ebs_optimized&quot;: false, 
            &quot;groups&quot;: {
                &quot;sg-8b2faff0&quot;: &quot;default&quot;
            }, 
            &quot;hypervisor&quot;: &quot;xen&quot;, 
            &quot;id&quot;: &quot;i-04992feeb756b46c5&quot;, 
            &quot;image_id&quot;: &quot;ami-45224425&quot;, 
            &quot;instance_type&quot;: &quot;t2.micro&quot;, 
            &quot;kernel&quot;: null, 
            &quot;key_name&quot;: &quot;bench-tools&quot;, 
            &quot;launch_time&quot;: &quot;2018-01-11T21:49:05.000Z&quot;, 
            &quot;placement&quot;: &quot;us-west-2c&quot;, 
            &quot;private_dns_name&quot;: &quot;ip-172-23-30-176.us-west-2.compute.internal&quot;, 
            &quot;private_ip&quot;: &quot;172.23.30.176&quot;, 
            &quot;public_dns_name&quot;: &quot;&quot;, 
            &quot;public_ip&quot;: null, 
            &quot;ramdisk&quot;: null, 
            &quot;region&quot;: &quot;us-west-2&quot;, 
            &quot;root_device_name&quot;: &quot;/dev/sda1&quot;, 
            &quot;root_device_type&quot;: &quot;ebs&quot;, 
            &quot;state&quot;: &quot;pending&quot;, 
            &quot;state_code&quot;: 0, 
            &quot;tags&quot;: {
                &quot;Name&quot;: &quot;test&quot;, 
                &quot;Prefix&quot;: &quot;dev&quot;
            }, 
            &quot;tenancy&quot;: &quot;default&quot;, 
            &quot;virtualization_type&quot;: &quot;hvm&quot;
        }
    ]
}"><pre class="notranslate"><code class="notranslate">TASK [aws_instances : ec2] ****************************************************************************************************************************************************************************************
task path: /home/tessa/ansible/roles/aws_instances/tasks/main.yml:2
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/cloud/amazon/ec2.py
&lt;127.0.0.1&gt; ESTABLISH LOCAL CONNECTION FOR USER: tessa
&lt;127.0.0.1&gt; EXEC /bin/sh -c 'echo ~ &amp;&amp; sleep 0'
&lt;127.0.0.1&gt; EXEC /bin/sh -c '( umask 77 &amp;&amp; mkdir -p "` echo /home/tessa/.ansible/tmp/ansible-tmp-1515707342.82-54897923708400 `" &amp;&amp; echo ansible-tmp-1515707342.82-54897923708400="` echo /home/tessa/.ansible/tmp/ansible-tmp-1515707342.82-54897923708400 `" ) &amp;&amp; sleep 0'
&lt;127.0.0.1&gt; PUT /tmp/tmpPn7vWS TO /home/tessa/.ansible/tmp/ansible-tmp-1515707342.82-54897923708400/ec2.py
&lt;127.0.0.1&gt; EXEC /bin/sh -c 'chmod u+x /home/tessa/.ansible/tmp/ansible-tmp-1515707342.82-54897923708400/ /home/tessa/.ansible/tmp/ansible-tmp-1515707342.82-54897923708400/ec2.py &amp;&amp; sleep 0'
&lt;127.0.0.1&gt; EXEC /bin/sh -c '/usr/bin/python /home/tessa/.ansible/tmp/ansible-tmp-1515707342.82-54897923708400/ec2.py; rm -rf "/home/tessa/.ansible/tmp/ansible-tmp-1515707342.82-54897923708400/" &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0'
changed: [localhost] =&gt; {
    "changed": true, 
    "instance_ids": [
        "i-04992feeb756b46c5"
    ], 
    "instances": [
        {
            "ami_launch_index": "0", 
            "architecture": "x86_64", 
            "block_device_mapping": {
                "/dev/sda1": {
                    "delete_on_termination": true, 
                    "status": "attaching", 
                    "volume_id": "vol-07a2b13e9a727b7cc"
                }
            }, 
            "dns_name": "", 
            "ebs_optimized": false, 
            "groups": {
                "sg-8b2faff0": "default"
            }, 
            "hypervisor": "xen", 
            "id": "i-04992feeb756b46c5", 
            "image_id": "ami-45224425", 
            "instance_type": "t2.micro", 
            "kernel": null, 
            "key_name": "ssh-key", 
            "launch_time": "2018-01-11T21:49:05.000Z", 
            "placement": "us-west-2c", 
            "private_dns_name": "ip-172-23-30-176.us-west-2.compute.internal", 
            "private_ip": "172.23.30.176", 
            "public_dns_name": "", 
            "public_ip": null, 
            "ramdisk": null, 
            "region": "us-west-2", 
            "root_device_name": "/dev/sda1", 
            "root_device_type": "ebs", 
            "state": "pending", 
            "state_code": 0, 
            "tags": {
                "Name": "test", 
                "Prefix": "dev"
            }, 
            "tenancy": "default", 
            "virtualization_type": "hvm"
        }
    ], 
    "invocation": {
        "module_args": {
            "assign_public_ip": false, 
            "aws_access_key": null, 
            "aws_secret_key": null, 
            "count": 1, 
            "count_tag": "{'Prefix': 'dev', 'Name': 'test'}", 
            "ebs_optimized": false, 
            "ec2_url": null, 
            "exact_count": 1, 
            "group": null, 
            "group_id": null, 
            "id": null, 
            "image": "ami-45224425", 
            "instance_ids": null, 
            "instance_initiated_shutdown_behavior": null, 
            "instance_profile_name": null, 
            "instance_tags": {
                "Name": "test", 
                "Prefix": "dev"
            }, 
            "instance_type": "t2.micro", 
            "kernel": null, 
            "key_name": "bench-tools", 
            "monitoring": false, 
            "network_interfaces": null, 
            "placement_group": null, 
            "private_ip": null, 
            "profile": null, 
            "ramdisk": null, 
            "region": "us-west-2", 
            "security_token": null, 
            "source_dest_check": true, 
            "spot_launch_group": null, 
            "spot_price": null, 
            "spot_type": "one-time", 
            "spot_wait_timeout": "600", 
            "state": "present", 
            "tenancy": "default", 
            "termination_protection": null, 
            "user_data": null, 
            "validate_certs": true, 
            "volumes": null, 
            "vpc_subnet_id": "vpc_subnet_id", 
            "wait": false, 
            "wait_timeout": "300", 
            "zone": null
        }
    }, 
    "tagged_instances": [
        {
            "ami_launch_index": "0", 
            "architecture": "x86_64", 
            "block_device_mapping": {
                "/dev/sda1": {
                    "delete_on_termination": true, 
                    "status": "attaching", 
                    "volume_id": "vol-07a2b13e9a727b7cc"
                }
            }, 
            "dns_name": "", 
            "ebs_optimized": false, 
            "groups": {
                "sg-8b2faff0": "default"
            }, 
            "hypervisor": "xen", 
            "id": "i-04992feeb756b46c5", 
            "image_id": "ami-45224425", 
            "instance_type": "t2.micro", 
            "kernel": null, 
            "key_name": "bench-tools", 
            "launch_time": "2018-01-11T21:49:05.000Z", 
            "placement": "us-west-2c", 
            "private_dns_name": "ip-172-23-30-176.us-west-2.compute.internal", 
            "private_ip": "172.23.30.176", 
            "public_dns_name": "", 
            "public_ip": null, 
            "ramdisk": null, 
            "region": "us-west-2", 
            "root_device_name": "/dev/sda1", 
            "root_device_type": "ebs", 
            "state": "pending", 
            "state_code": 0, 
            "tags": {
                "Name": "test", 
                "Prefix": "dev"
            }, 
            "tenancy": "default", 
            "virtualization_type": "hvm"
        }
    ]
}
</code></pre></div>