Skip to content

Accepter incorrectly maps routes to subnets #70

Open
@mattcasiro

Description

@mattcasiro

Found a bug? Maybe our Slack Community can help.

Slack Community

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:

  1. Create a VPC with multiple route tables attached to different subnets as the accepter
  2. Run the terraform module with accepted and requester
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug🐛 An issue with the system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions