Open allexivan opened 3 months ago
I'm also blocked by this error.
@osterman Is there a workaround that CloudPosse can recommend here, or a suggested fix? I'm happy to submit a PR but I'm newer to terraform and unsure how to resolve this other than potentially via apply-time -target
, which seems hacky.
@allexivan I've submitted PR #53, in case you want to test whether this also resolves your issue.
Describe the Bug
I cannot dynamically reference module.transit_gateway. I get a count error:
Expected Behavior
reference to a transit gateway should not fail when there are no resources created.
Steps to Reproduce
The official code does not work:
https://github.com/cloudposse/terraform-aws-transit-gateway/blob/main/examples/multi-account/main.tf
Screenshots
No response
Environment
Terraform v1.9.3 on darwin_arm64
Additional Context
No response