Loading...
Loading...
### Terraform Version ```shell Terraform v1.10.2 on darwin_arm64 + provider registry.terraform.io/hashicorp/null v3.2.3 + provider registry.terraform.io/hashicorp/random v3.6.3 ``` ### Terraform Configuration Files ```terraform variable "cnt" { type = number default = 1 } resource "null_resource" "a" { count = var.cnt } resource "null_resource" "b" { count = length(null_resource.a) } resource "random_uuid" "test" { } ``` ### Debug Output https://gist.github.com/ablackrw/1b2073e523311ab0f3337283daae4160 ### Expected Behavior Invocation of `terraform import` adds resource to state file. ### Actual Behavior Terraform state file not created. ### Steps to Reproduce ``` terraform init terraform import random_uuid.test `uuidgen` ``` ### Additional Context If the `null_resource.b` block is removed, a `terraform.tfstate` file will be created. This file will only contain the `random_uuid.test` resource. ### References _No response_ ### Generative AI / LLM assisted development? _No response_
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.