-
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
aws_region doesn't work with terraform_remote_state #2751
Comments
Just looking at this and shouldn't
be
As per the docs here: http://www.terraform.io/docs/state/remote.html |
@antonosmond Good catch, but it doesn't really help. I just tested & fixed the example. |
Reproduced. |
Okay, this will be a hard bug to fix. The crux of the issue is that if a parameter to a provider is computed, then we shouldn't configure that provider. But, continuing that: if a provider isn't configured, we can't refresh anything using that provider. But, if we don't refresh anything, then when will that refresh ever happen? Think about it, and you start getting into weird thoughts of multi-convergence, which isn't a place we want to go. I think the correct solution to this might be a much larger change... |
Also ran into this problem trying to share the value of |
I think this is the same issue that motivated me to write up #2976. Over there I've been prototyping and writing up some ideas for resolving this issue. Like @mitchellh said here, it's definitely some sort of architectural change to fix this, and I'd like to help explore solutions. |
👍 I'm running into this as well |
#4169 is the latest generation of the proposal to address this use-case. FWIW, there is a workaround for this that I've been using everywhere in the mean time: whenever you ask Terraform to change resources, always run with This is annoying, but at least it's something predictable enough that I can just encode it in our deployment scripts for everyone to run without really understanding exactly why it needs to be done. In some cases this actually seems like it doesn't work, because even with After #4169 is implemented, this problem would be resolved by changing the |
This should be possible with #4169 as @apparentlymart said above! |
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. |
Steps to reproduce:
/00-common/main.tf
:/main.tf
Here's the state file from S3:
May be related to #2256 although that one has been fixed.
The text was updated successfully, but these errors were encountered: