-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interpolation in 'provider =' value for aws_vpc is broken #4845
Comments
I also ran into this issue. Is there any workaround? |
+1 Same problem |
Hi all! Sorry for the long silence here. This seems to be covering the same use-case as #3656, so I'm going to close this out just to consolidate the discussion. Terraform generally doesn't allow interpolation in the so-called "meta-arguments" because they need to be evaluated during Terraform's graph-building step (in a sense, the "compile" step of the Terraform language) while expressions cannot be evaluated until the graph walk (the "run" step). This is similar to the idea that in many of programming languages you can't use variables in the names of types and functions, because they are something dealt with at compile time rather than at runtime. However, we would still like to do something about the use-case of choosing a provider, so although it's unlikely to be solved by permitting arbitrary interpolation of provider addresses the issue #3656 is intended to represent the general use-case, with a design still to be determined. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
I would expect this to work:
Instead, I get:
Even changing it to something like this:
fails to work in the same way:
The text was updated successfully, but these errors were encountered: