Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module fails to deploy due to invalid count argument #566

Open
mishabruml opened this issue Nov 25, 2022 · 1 comment
Open

module fails to deploy due to invalid count argument #566

mishabruml opened this issue Nov 25, 2022 · 1 comment

Comments

@mishabruml
Copy link



Error: Invalid count argument
--
801 |  
802 | on .terraform/modules/infrastructure.cloud-key-rotator/main.tf line 81, in resource "aws_secretsmanager_secret_version" "ckr-config-string":
803 | 81:   count = var.config_data != "" ? 1 : 0
804 |  
805 | The "count" value depends on resource attributes that cannot be determined
806 | until apply, so Terraform cannot predict how many instances will be created.
807 | To work around this, use the -target argument to first apply only the
808 | resources that the count depends on.


@mishabruml
Copy link
Author

also

╷
│ Error: Invalid count argument
│ 
│   on .terraform/modules/infrastructure.k8s_monitor_client/secret.tf line 5, in resource "kubernetes_secret" "client_signing_key":
│    5:   count = var.enabled && var.kubernetes_monitor_private_key_encoded != "" ? 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.
╵

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant