Skip to content

module fails to deploy due to invalid count argument #566

@mishabruml

Description

@mishabruml


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.


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions