ovotech / cloud-key-rotator

A Golang program to rotate AWS & GCP account keys

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

module fails to deploy due to invalid count argument

mishabruml opened this issue · comments



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.


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.
╵