ce-provision

Update main route for a given VPC

This will add/update routes on the “main” route table for a given VPC, leaving existing routes for different CIDR blocks intact.

Default variables

# @todo Support associating route with several subnets.
aws_vpc_route:
  aws_profile: "{{ _aws_profile }}"
  region: "{{ _aws_region }}"
  # Beware when calling this on "peering" routes, not to override tags with the target peer's one.
  # tags:
  #   Name: "example"
  vpc_id: vpc-XXX
  # subnet_id: subnet-XXX # Optional. If omitted, the role will target the "main" route for the VPC. Else a route will be created for the subnets.
  # See https://docs.ansible.com/ansible/latest/collections/amazon/aws/ec2_vpc_route_table_module.html#parameter-routes
  routes:
    - dest: "10.0.0.0/16" # CIDR block for the route.
      gateway_id: igw-XXX