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 plan --destroy completes successfully and returns a plan.
Current Behavior
When running terraform plan --destroy, the RHCS provider module for operator roles returns the following error and does not generate a plan:
│ Error: Invalid count argument
│
│ on .terraform/modules/rosa-cluster.operator_roles/main.tf line 64, in module "rosa_account_roles":
│ 64: count = var.create_account_roles && null_resource.validate_openshift_version != null ? 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
Deploy a new ROSA cluster using Terraform
Run terraform plan --destroy to destroy the newly created cluster
Environment
Cloud:
AWS w/S3 backend
Terraform Version:
1.9.2
Provider Versions:
Installing hashicorp/aws v5.58.0...
Installing terraform-redhat/rhcs v1.6.2...
Installing hashicorp/azurerm v3.112.0...
Installing hashicorp/random v3.6.2...
Installing hashicorp/time v0.11.2...
Installing hashicorp/null v3.2.2...
Installing hashicorp/azuread v2.53.1...
The text was updated successfully, but these errors were encountered:
Expected Behavior
Terraform plan --destroy completes successfully and returns a plan.
Current Behavior
When running terraform plan --destroy, the RHCS provider module for operator roles returns the following error and does not generate a plan:
│ Error: Invalid count argument
│
│ on .terraform/modules/rosa-cluster.operator_roles/main.tf line 64, in module "rosa_account_roles":
│ 64: count = var.create_account_roles && null_resource.validate_openshift_version != null ? 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
Environment
Cloud:
Terraform Version:
Provider Versions:
The text was updated successfully, but these errors were encountered: