Skip to content

Instantly share code, notes, and snippets.

@unfor19
Created September 24, 2019 08:58
Show Gist options
  • Save unfor19/9ed25bcbbe37062ddb2d709123e20f79 to your computer and use it in GitHub Desktop.
Save unfor19/9ed25bcbbe37062ddb2d709123e20f79 to your computer and use it in GitHub Desktop.
Get cidr_ab per environment
locals {
private_subnets = [
"${lookup(var.cidr_ab, var.environment)}.1.0/24",
"${lookup(var.cidr_ab, var.environment)}.2.0/24",
"${lookup(var.cidr_ab, var.environment)}.3.0/24"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment