ansible / lightbulb

Lightbulb has been deprecated and replaced by Ansible Workshops
https://ansible.github.io/workshops/
MIT License
480 stars 310 forks source link

AWS provisioning doesn't work on us-west-2 #173

Open alberttwong opened 7 years ago

alberttwong commented 7 years ago
TASK [manage_ec2_instances : Create or destroy EC2 instances] ******************
task path: /Users/alwong/workshop/lightbulb/tools/aws_lab_setup/roles/manage_ec2_instances/tasks/main.yml:18
fatal: [localhost]: FAILED! => {
    "failed": true,
    "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: {u'rhel7': {u'os_type': u'linux', u'ami_id': u'{{ ec2_regions[ec2_region].amis.rhel7 }}', u'disk_space': 10, u'size': u      ec2_vpc_id: vpc-eeabfc8a     # EC2 VPC ID in your region
't2.micro'}, u'rhel7-tower': {u'os_type': u'linux', u'ami_id': u\"{{ ec2_regions[ec2_region].amis['rhel7-tower'] }}\", u'disk_space': 20, u'size': u't2.medium'}, u'centos7-tower': {u'os_type': u'linux', u'ami_id': u\"{{ ec2_regions[ec2_region].amis['centos7-tower'] }}\", u'disk_space': 20, u'size': u't2.medium'}, u'centos7': {u'os_type': u'linux', u'ami_id': u'{{ ec2_regions[ec2_region].amis.centos7 }}', u'disk_space': 10, u'size': u't2.micro'}, u'ubuntu16': {u'os_type': u'linux', u'ami_id': u'{{ ec2_regions[ec2_region].amis.ubuntu16 }}', u'disk_space': 10, u'size': u't2.micro'}, u'ubuntu14': {u'os_type': u'linux', u'ami_id': u'{{ ec2_regions[ec2_region].amis.ubuntu14 }}', u'disk_space': 10, u'size': u't2.micro'}}: 'dict object' has no attribute u'us-west-2'\n\nThe error appears to have been in '/Users/alwong/workshop/lightbulb/tools/aws_lab_setup/roles/manage_ec2_instances/tasks/main.yml': line 18, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Create or destroy EC2 instances\n  ^ here\n"
}
tima commented 7 years ago

Known issue. The provisioner only supports us-east-1 and us-west-1. It's a long story but #141 will address this so any AWS region can be easily supported.