Open
Description
Found a bug? Maybe our Slack Community can help.
Describe the Bug
When calculating the local value accepter_aws_rt_map the try condition always fails to default because it's attempting to access a set value using an index which is not possible.
Expected Behavior
The try condition properly accesses the set values when available to correctly build the map.
Steps to Reproduce
Steps to reproduce the behavior:
- Create a VPC with multiple route tables attached to different subnets as the accepter
- Run the terraform module with accepted and requester
- See that only one route table is mapped to the peering connection
Screenshots
If applicable, add screenshots or logs to help explain your problem.
Environment (please complete the following information):
Anything that will help us triage the bug will help. Here are some ideas:
- Terraform Version 0.13
- AWS Provider Version 4.0
Additional Context
Wrapping the set value in "tolist()" should resolve this, but I have yet to fully validate this solution.