Created
February 14, 2020 09:09
-
-
Save law/c50b644161142fffa369465d91031fe2 to your computer and use it in GitHub Desktop.
Desired end result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "aws_subnet" "mgmt_a" { | |
vpc_id = local.vpc_id | |
cidr_block = 10.105.160.0/26 | |
availability_zone = us-east-1a | |
tags = { | |
Name = "mgmt-a" | |
Other = "foo" | |
Nonsense = "bar" | |
Tagss = "baz" | |
} | |
} | |
resource "aws_subnet" "mgmt_b" { | |
vpc_id = local.vpc_id | |
cidr_block = 10.105.160.64/26 | |
availability_zone = us-east-1b | |
tags = { | |
Name = "mgmt-b" | |
Other = "foo" | |
Nonsense = "bar" | |
Tagss = "baz" | |
} | |
} | |
resource "aws_subnet" "mgmt_c" { | |
vpc_id = local.vpc_id | |
cidr_block = 10.105.160.128/26 | |
availability_zone = us-east-1c | |
tags = { | |
Name = "mgmt-c" | |
Other = "foo" | |
Nonsense = "bar" | |
Tagss = "baz" | |
} | |
} | |
resource "aws_subnet" "app_a" { | |
vpc_id = local.vpc_id | |
cidr_block = 10.105.161.0/27 | |
availability_zone = us-east-1a | |
tags = { | |
Name = "app-a" | |
Other = "foo" | |
Nonsense = "bar" | |
Tagss = "baz" | |
} | |
} | |
resource "aws_subnet" "app_b" { | |
vpc_id = local.vpc_id | |
cidr_block = 10.105.161.32/27 | |
availability_zone = us-east-1b | |
tags = { | |
Name = "app-a" | |
Other = "foo" | |
Nonsense = "bar" | |
Tagss = "baz" | |
} | |
} | |
resource "aws_subnet" "app_c" { | |
vpc_id = local.vpc_id | |
cidr_block = 10.105.161.64/27 | |
availability_zone = us-east-1c | |
tags = { | |
Name = "app-a" | |
Other = "foo" | |
Nonsense = "bar" | |
Tagss = "baz" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment