ec2_vpc_route_table not working with NAT gateways

35 views
Skip to first unread message

Dean Mills

unread,
Mar 7, 2016, 8:56:51 AM3/7/16
to Ansible Project
Having troubles trying to setup the route tables in a VPC with a NAT gateway as the target.

- name: Create Private B route tables
    ec2_vpc_route_table
:
      vpc_id
: '{{ vpc_id }}'
      region
: '{{ vpc_region }}'
      subnets
:
     
- '{{ vpc_subnet_private_b }}'
      routes
:
       
- dest: 0.0.0.0/0
          instance_id
: 'nat-0f0e9840ce4984705'
      resource_tags
: { "Name":'Private B' }
   
register: vpc_private_b_route_table


The route table is created, but only has the default local route and not the one I am trying to create to the NAT gateway. Any ideas on what is going on or what I am doing wrong greatly appreciated!
Reply all
Reply to author
Forward
0 new messages