coalesce
-based workaround for import
vs non-var
entities?
#15510
Labels
coalesce
-based workaround for import
vs non-var
entities?
#15510
We're doing approximately this:
constants/main.tf
global/main.tf
This works great, but of course, it breaks
terraform import
because of the provider's dependency on an interpolation from a source that isn't a variable.I'm wondering how difficult it would be to modify
ImportProviderValidateTransformer
to consider this construct safe:This would let us use modules-as-constants as we are happily doing so during normal operation, but for (rare) times when we're importing, we can make our existing config work via:
terraform import -var import_aws_account_id=0123456789012 ...
I'm glad to try and do the work if there are indications that a) it's possible given the data structures exposed to
ImportProviderValidateTransformer
and b) it would be reasonably likely to be accepted if I can get it working. :-)Thanks for reading!
The text was updated successfully, but these errors were encountered: