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 .terraform/modules/ac2ui_documentdb_cluster/main.tf line 43, in resource "random_password" "password":
│ 43: count = module.this.enabled && var.master_password != "" ? 0 : 1
│
│ 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.
Expected Behavior
Terraform plan should be applied without this issue.
Steps to Reproduce
set password to the value of an ssm param, for example:
rajesh6752
changed the title
Invalid count argument when password provide password using random_password
Invalid count argument when password provide using random_password
Oct 20, 2023
Describe the Bug
╷
│ Error: Invalid count argument
│
│ on .terraform/modules/ac2ui_documentdb_cluster/main.tf line 43, in resource "random_password" "password":
│ 43: count = module.this.enabled && var.master_password != "" ? 0 : 1
│
│ 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.
Expected Behavior
Terraform plan should be applied without this issue.
Steps to Reproduce
set password to the value of an ssm param, for example:
Screenshots
No response
Environment
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: