Loading...
Loading...
### Terraform Version ```shell Terraform v1.9.8 on linux_amd64 + provider registry.terraform.io/hashicorp/null v3.2.3 ``` ### Terraform Configuration Files ```terraform resource "null_resource" "resource_name" { } data "null_data_source" "data_source_name" { # Increase number of resources to increase the changes of error (issue is non-deterministic) for_each = toset(["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", ]) lifecycle { postcondition { # To repoduce # Either condition OR error_message must use self.*, true or false result does not matter condition = self.outputs == null # Must depend on resource not known until apply error_message = null_resource.resource_name.id } } } ``` ### Debug Output https://gist.github.com/rwblokzijl/6a5aa1acfcc28f5d2451ab0f82a14844 ### Expected Behavior No error. ### Actual Behavior It non-determisistically errors. ### Steps to Reproduce 1. `terraform init` 2. `terraform plan` 3. repeat step 2 until it errors (issue is non-deterministic) ### Additional Context _No response_ ### References https://github.com/hashicorp/terraform/issues/34310
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.