79422371

Date: 2025-02-07 23:33:50
Score: 1
Natty:
Report link

For anyone coming across this in 2025, there's no solution to this problem as terraform simply doesn't support it. See https://github.com/hashicorp/terraform/issues/26697

The only solution to this I can come up with is to use an "external" data resource (data "external" "generator") that points to a script you write, consumes your configuration data, and generates a terraform file you can then consume in your TF modules.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: EARonan