Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure additional routes for the subnets #128

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Jul 29, 2023

  1. Configure additional routes for the subnets

    Adding new optional attribute routes into variable subnets.
    This is useful in environments where core network, transit
    gateways, etc. are created out of operator control.
    
    Notes to the implementation:
    We are limited here by Terraform because for_each works only with
    set or map. As we have multiple subnets for a subnet / route table
    we cannot use it. For that reason the code creates list of maps where
    each map represents a route for the specific route table (attribute
    route_table_name). In such case we can use count to iterate over it.
    
    We are limited here by Terraform because for_each works only with
    a set or map. As we have multiple routes for a subnet / route table,
    we cannot use it. For that reason, the code creates a list of maps
    where each map represents a route for the specific route table
    (attribute route_table_name). In such case, we can use count to
    iterate over it.
    adrianeib committed Jul 29, 2023
    Configuration menu
    Copy the full SHA
    a3818e8 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2023

  1. Add variable validation rule to make sure there isn't subnet with a r…

    …oute
    
    for 0.0.0.0/0 CIDR and connect_to_public_natgw set to true
    adrianeib committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    50bc645 View commit details
    Browse the repository at this point in the history