radify / radiian

Radiian creates Ansible provisioning files for immutable infrastructure on AWS
https://www.npmjs.com/package/radiian
BSD 3-Clause "New" or "Revised" License
19 stars 2 forks source link

vpc_subnet_id needs to be specified #71

Open gavD opened 8 years ago

gavD commented 8 years ago

e.g.:

  - name: Launch Instance
    ec2: image='<redacted>'
         instance_type="{{ instance_type }}"
         keypair='dashboard'
         instance_tags='{"Environment":"<redacted>""Class":"<redacted>-immutable","Name":"<redacted> (immutable)"}'
         region='{{ region }}'
         aws_zone='{{ region }}{{ aws_zone }}'
         group_id='<redacted>'
         vpc_subnet_id='<redacted>'
         wait=true
    register: ec2_info

without this, ansible fails, asking about group_id, which is a red herring

Stillerman commented 8 years ago

When using a vpc_subnet_id, you need to use group_id instead of group, and when using ec2 classic you need to use group.