This PR fixes an unique_route_table_ids output in subnet_set module, which took the value directly from route table resource block. Meanwhile, the route table can also be sourced using a data source block. Now the output takes value from a local which takes value from a resource block or data source block depending on a create type variable.
Motivation and Context
Routes for the subnets that were sourced in the code (using data source blocks) were not created in their respective route tables. Basically the vpc_route module failed to fetch the Route Table IDs from subnet_set module when the subnets were sourced.
How Has This Been Tested?
This has been tested locally from my workstation, with a local copy of the module.
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist
[x] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes if appropriate.
Description
This PR fixes an
unique_route_table_ids
output insubnet_set
module, which took the value directly from route table resource block. Meanwhile, the route table can also be sourced using a data source block. Now the output takes value from a local which takes value from a resource block or data source block depending on a create type variable.Motivation and Context
Routes for the subnets that were sourced in the code (using data source blocks) were not created in their respective route tables. Basically the
vpc_route
module failed to fetch the Route Table IDs fromsubnet_set
module when the subnets were sourced.How Has This Been Tested?
This has been tested locally from my workstation, with a local copy of the module.
Types of changes
Checklist