Good day all!
We are trying to achieve the following requirement using Terraform.
We need to have multiple public subnets with different Tag names across three AZs as below.
What is the best way to achieve this using terraform modules.
AZ1 AZ2 AZ3
subnet_public_group1_1a subnet_public_group1_1b subnet_public_group1_1c
subnet_public_group2_1a subnet_public_group2_1b subnet_public_group2_1c
subnet_public_group3_1a subnet_public_group3_1b subnet_public_group3_1c
We currently have an approach of using separate resources defined for each subnet groups(subnet_public_group1, subnet_public_group2, subnet_public_group3) in Terraform modules.
Is there a better way to achieve this using the existing terraform modules(aws_subnet resource for public network)?
Also, we are going to associate single route table to all these subnets created above.
Any help is appreciated.