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
│ Error: Invalid count argument
│
│ on modules/data/main.tf line 17, in data "terraform_remote_state" "s3":
│ 17: count = local.use_s3_backend ? 1 : 0
│
Steps to Reproduce
terraform init
terraform plan -destroy -out=plan
terraform apply plan
Additional Context
Although it may seem trivial that an error is generated when destroying a non-existent resource, it causes significant problems with automated workflows, such as cleaning up test environments.
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.
Terraform Version
Terraform Configuration Files
./modules/data/main.tf
main.tf
Debug Output
terraform-debug.log
Expected Behavior
Actual Behavior
Steps to Reproduce
terraform init
terraform plan -destroy -out=plan
terraform apply plan
Additional Context
Although it may seem trivial that an error is generated when destroying a non-existent resource, it causes significant problems with automated workflows, such as cleaning up test environments.
References
The text was updated successfully, but these errors were encountered: