Terraform AWS route table association

Viewed 29

I have created main.tf which has the code for following resources and are created using for_each with variables.tf having the map for subnets

1 vpc

2 public subnets

2 private subnets

With in the same main.tf,I want to dynamically associate the route table to the created subnets but unable to understand how to reference the subnet ids using output or any other process.

0 Answers
Related