Skip to content

VPC CIDRS for cross-region peering #13

Discussion options

You must be logged in to vote

From a grunt

Hey, Adam! So I’ve actually asked for some help from our subject matter experts on the Ref Arch & here’s the answer:

  • You can nest the structure of app_vpc_cidrs to include the region, and then update the references to inject the region accordingly.
  • You can change the common.hcl  in whatever shape works for you!
    Here’s the example steps:
  1. Update app_vpc_cidrs to look like the following:
app_vpc_cidrs = {
  dev = {
    "us-east-1" = "10.0.0.0/16"
    "us-west-1" = "10.1.0.0/16"
  }
  stage = {
    "us-east-1" = "10.2.0.0/16"
    "us-west-1" = "10.3.0.0/16"
  }
}
  1. Update the reference to `app_vpc_cidrs`` to include the region. E.g., dev currently references the block like th…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gruntwork-support
Comment options

Answer selected by gruntwork-support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment