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
./terraform apply plan
module.two.null_resource.sample[0]: Destroying... [id=1227142402422233482]
module.two.null_resource.sample[0]: Destruction complete after 0s
Error: Invalid count argument
on 02/main.tf line 5, in resource "null_resource""sample":
5: count = var.items.foo == "c"? 1 : 0
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
terraform init
terraform apply -auto-approve
terraform plan -destroy -out=plan
terraform apply plan
Additional Context
References
The text was updated successfully, but these errors were encountered:
afallucc
changed the title
0.13.2: Error: Invalid count argument:
0.13.2: Error: Invalid count argument: terraform apply 'destroy' plan
Sep 10, 2020
jbardin
added
confirmed
a Terraform Core team member has reproduced this issue
v0.13
Issues (primarily bugs) reported against v0.13 releases
and removed
new
new issue not yet triaged
labels
Sep 16, 2020
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
Apr 9, 2021
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bugconfirmeda Terraform Core team member has reproduced this issuev0.13Issues (primarily bugs) reported against v0.13 releases
Terraform Version
Terraform Configuration Files
Debug Output
Crash Output
Expected Behavior
Successful destroy
Actual Behavior
Steps to Reproduce
Additional Context
References
The text was updated successfully, but these errors were encountered: