I’m running a simple play to create an ec2 instance and encountering the error mentioned in the subject. Something must be wrong with my setup but I don’t know what it could be. I’m running Ansible from a clone of the repo on github. I’ve sourced the hacking/env_setup file and have many other plays using other ec2_* modules that work. I have boto and boto3 installed and I’m running on Mac OS 10.11.2.
I’d sincerely appreciate any pointers on how to correct my setup.
I’ve tried some of the plays documented with the ec2 module and always get the same error. Here’s the play I’m trying to run:
- ec2:
image: “{{ linux_image }}”
instance_type: “{{ instance_type }}”
key_name: “{{ key_name }}”
region: “{{ region }}”
state: present
vpc_subnet_id: “{{ public_subnet_a }}”
The variables have appropriate values assigned. I’ve even tried the play with hard coded values and get the same error.
What baffles me is that ec2 fails while all the other ec2_* modules work. What am I missing?
Thanks in advance,
Jim