Skip to content

Conversation

@Hamza-Olol
Copy link

what

  • The existing module only allows a user to associate the route table of a private subnet with a network interface or a nat gateway.
  • By adding the tgw_id argument, users of the subnet module can automatically create a route table with routing between a private subnet and a transit gateway.

why

  • As a best practice, a user may create an AWS account for centralized networking.
  • To allow traffic to route from account B to account A (centralized networking account), a Transit Gateway is needed.
  • If a user creates a subnet using this module, the tgw_id feature will allow the user to directly associate the route table in the private subnet to an existing transit gateway.
  • Example architecture:
    ec2 -> private subnet rtb -> tgw -> private subnet rtb-> natgw -> public internet
    |--------AWS Account B------|-------AWS Account A----------|

References

Multi account practices

@Hamza-Olol Hamza-Olol requested review from a team as code owners May 13, 2024 23:30
@mergify mergify bot added the triage Needs triage label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage Needs triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant