Skip to content

Invalid count argument mq_application_password #43

@albertocapella-blink

Description

@albertocapella-blink

Found a bug? Maybe our Slack Community can help.

Slack Community

Describe the Bug

│ Error: Invalid count argument
│ 
│   on .terraform/modules/main.mq_broker/main.tf line 42, in resource "random_password" "mq_application_password":
│   42:   count   = local.enabled && ! local.mq_application_password_is_set ? 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.

Expected Behavior

im using the following for random password gen:

resource "random_password" "password" {
  length           = 32
  special          = true
  override_special = "-._~"
}

Environment (please complete the following information):

Anything that will help us triage the bug will help. Here are some ideas:

  • OS: OSX, Debian buster
  • Version Terraform v1.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug🐛 An issue with the system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions