-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Closed
Labels
Description
Terraform Version
Terraform v1.11.2
on darwin_arm64Terraform Configuration Files
main.tf
module "count_1" {
count = 1
source = "./module"
}
module "count_0" {
count = 0
source = "./module"
}./module/main.tf
ephemeral "random_password" "this" {
length = 10
}Debug Output
Expected Behavior
No error reported when the module count is 0.
Actual Behavior
│ Error: Graph node has invalid dynamic subgraph
│
│ The internal logic for "module.count_0.ephemeral.random_password.this (expand)" generated an invalid dynamic subgraph: no roots found.
│
│ This is a bug in Terraform. Please report it!
Steps to Reproduce
terraform initterraform apply
Additional Context
This is a simplified example to show the issue, the actual module where I came across this has variables that can cause the count to be >=0.
Also tested this with an ephemeral aws_ssm_parameter from the AWS Provider with the same result.
References
No response
Generative AI / LLM assisted development?
No response