Skip to content

Instantly share code, notes, and snippets.

@nleiva
Created June 30, 2021 21:09
Show Gist options
  • Save nleiva/a2c844abf19b371c0c50ad566d8f621b to your computer and use it in GitHub Desktop.
Save nleiva/a2c844abf19b371c0c50ad566d8f621b to your computer and use it in GitHub Desktop.
- name: Create Route Table
community.aws.ec2_vpc_route_table:
region: "{{ ec2_region }}"
vpc_id: "{{ create_vpc.vpc.id }}"
subnets:
- "{{ create_subnet.subnet.id }}"
routes:
- dest: 0.0.0.0/0
gateway_id: "{{ igw.gateway_id }}"
tags:
Environment: "{{ ec2_environment }}"
register: rt_table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment