Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS Dynamic inventory returns empty for af-south-1 region #70164

Closed
arossouw opened this issue Jun 19, 2020 · 3 comments
Closed

AWS Dynamic inventory returns empty for af-south-1 region #70164

arossouw opened this issue Jun 19, 2020 · 3 comments
Labels
affects_2.9 This issue/PR affects Ansible v2.9 aws bug This issue/PR relates to a bug. cloud collection:amazon.aws collection Related to Ansible Collections work module This issue/PR relates to a module. needs_collection_redirect https://github.com/ansible/ansibullbot/blob/master/docs/collection_migration.md python3 support:community This issue/PR relates to code supported by the Ansible community.

Comments

@arossouw
Copy link

arossouw commented Jun 19, 2020

SUMMARY

When I try to get a list of ec2 instances with ec2.py --list, when I have a ec2 instance active on AWS, within the af-south-1 region. I get the following output:
{
"_meta": {
"hostvars": {}
}
}

When I stop that instance and create an instance in the ohio (us-east-2) region. I do get
the expected output of ec2 instances.

I've set ec2.ini to region=all

ISSUE TYPE
  • Bug Report
COMPONENT NAME

Amazon EC2

ANSIBLE VERSION
ansible 2.9.9
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/Users/arno/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.7/site-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 3.7.7 (default, Mar 24 2020, 11:13:41) [Clang 11.0.0 (clang-1100.0.33.12)]
CONFIGURATION
ANSIBLE_PIPELINING(/etc/ansible/ansible.cfg) = True
OS / ENVIRONMENT

Mac OS Catalina

STEPS TO REPRODUCE
---
- hosts: all
  gather_facts: yes
  user: ubuntu
  vars_files:
    - vars.yml
  vars:
    ansible_ssh_private_key_file: "{{ key1 }}"
  become: yes
  tasks:
     - shell: /usr/bin/uptime
       register: result
     - debug:
         var: result
         verbosity: 2
     - name: create a test file
       file:
         path: "/home/ubuntu/testfile.txt"
         state: touch
EXPECTED RESULTS

Expected ec2.py --list to return a list of ec2 instances when I have a instance
running within the af-south-1 region.

ACTUAL RESULTS

Get an empty list when running ec2.py --list

ec2.py --list
@ansibot
Copy link
Contributor

ansibot commented Jun 19, 2020

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibot
Copy link
Contributor

ansibot commented Jun 19, 2020

@arossouw, just so you are aware we have a dedicated Working Group for aws.
You can find other people interested in this in #ansible-aws on Freenode IRC
For more information about communities, meetings and agendas see https://github.com/ansible/community

click here for bot help

@ansibot ansibot added affects_2.9 This issue/PR affects Ansible v2.9 aws bug This issue/PR relates to a bug. cloud collection Related to Ansible Collections work collection:amazon.aws module This issue/PR relates to a module. needs_collection_redirect https://github.com/ansible/ansibullbot/blob/master/docs/collection_migration.md needs_triage Needs a first human triage before being processed. python3 support:community This issue/PR relates to code supported by the Ansible community. labels Jun 19, 2020
@Akasurde
Copy link
Member

Issue migrated to ansible-collections/community.aws#110

@sivel sivel removed the needs_triage Needs a first human triage before being processed. label Jun 22, 2020
@ansible ansible locked and limited conversation to collaborators Jul 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.9 This issue/PR affects Ansible v2.9 aws bug This issue/PR relates to a bug. cloud collection:amazon.aws collection Related to Ansible Collections work module This issue/PR relates to a module. needs_collection_redirect https://github.com/ansible/ansibullbot/blob/master/docs/collection_migration.md python3 support:community This issue/PR relates to code supported by the Ansible community.
Projects
None yet
Development

No branches or pull requests

4 participants