You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "count" value depends on resource attributes that cannot be determined
until apply, so Terraform cannot predict how many instances will be created.
To work around this, use the -target argument to first apply only the
resources that the count depends on.
Debug Output
Crash Output
N/A
Expected Behavior
Plan should be successful as it is in 0.12.29
Actual Behavior
The "count" value depends on resource attributes that cannot be determined
until apply, so Terraform cannot predict how many instances will be created.
To work around this, use the -target argument to first apply only the
resources that the count depends on.
Steps to Reproduce
Listed above
Additional Context
For 0.13.4 using
terraform apply -refresh=false
which bypasses the initial refresh seems to be a workaround.
The fact that -refresh=false confirms that this is something resolved by the changes in 0.14. There will no longer be a separate refresh phase internally, and this type of skew between configuration and state should no longer be a factor.
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.
ghost
locked as resolved and limited conversation to collaborators
Nov 14, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Terraform Configuration Files
machine_type = "foo"
terraform apply
fails withDebug Output
Crash Output
N/A
Expected Behavior
Plan should be successful as it is in 0.12.29
Actual Behavior
Steps to Reproduce
Listed above
Additional Context
For
0.13.4
usingwhich bypasses the initial refresh seems to be a workaround.
References
x-ref: terraform-google-modules/terraform-google-kubernetes-engine#690
Might be related to
The text was updated successfully, but these errors were encountered: