Closed drewmullen closed 2 years ago
routing ideas:
specific per appliance:
route_to_nat = {
subnet = "publicsubnets"
cidr = "10.0.0.0/8"
}
generic:
routes = [{
subnet = "tgw"
cidr = "10.0.0.0/8"
appliance = "tgw" # static list of available options?
}]
Reality is that we can have 2 hardcoded types: public, transit_gateway. You will only ever have 1 of each of those
private subnets are the oddity here because you can have n private subnets
Proposed idea: do not enforce naming conventions on subnet types (
private
,public
,transit_gateway
, etc). This will allow users to create arbitrary subnet amounts. For example, currently, users can only create 1 grouping of private subnets.Idea 1: create abstract module concepts for each and allow users to specify in the map itself:
Pros/Cons:
-
breaking change+
allows for defining subnet types in modules that are easier to understandIdea 2: create generic subnet module and allow any variable to be passed:
Pros/Cons:
+
likely non breaking change-
code inside new modulesubnet
would be complexidea 2 open questions: