Attempting conversion containing for_each
with primitives fails
#228
Labels
kind/bug
Some behavior is incorrect or out of spec
for_each
with primitives fails
#228
What happened?
The
pulumi convert --from terraform --language python
command does not work for terraform for-loops that have primitives. For examplefor_each = var.enable ? [1] : []
which we typically do for dynamic blocks such as S3 lifecycle rules which has to be defined in a single resource (ref). The error message is:Example
Output of
pulumi about
Not available; assume v3.141.0
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: