Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- env="${terraform.workspace}"
- cidr_block_v = {
- "ops"="10.10.0.0/16",
- "production"="10.10.0.0/16",
- "staging"="10.1.0.0/16",
- }
- availability_zones = ["us-west-2a","us-west-2b","us-west-2c"]
- private_subnets_v = {
- "ops"="10.10.1.0/24, 10.10.2.0/24, 10.10.3.0/24",
- "production"="10.10.1.0/24, 10.10.2.0/24, 10.10.3.0/24",
- "staging"="10.0.1.0/24, 10.0.2.0/24, 10.0.3.0/24"
- }
- public_subnets_v = {
- "ops"="10.10.4.0/24, 10.10.5.0/24, 10.10.6.0/24",
- "production"="10.10.4.0/24, 10.10.5.0/24, 10.10.6.0/24",
- "staging"="10.1.1.0/24, 10.1.2.0/24, 10.1.3.0/24"
- }
- cidr_block="${lookup(local.cidr_block_v,local.env)}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement