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/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.
If you do not supply the module with application credentials, it will go ahead and create them using random_password but you can only access them via Parameter Store.
I've yet to find a way to create credentials that are portable within my TF, and don't cause this count to flip out.
If you apply your random_password resource in state, and THEN try to create the AMQ resource, it works.
There should be an easier way to fetch the passwords generated by the module. I'm trying to run some rabbitmqadmin commands after the cluster is up, but in order to do that, I need access to the passwords generated by the module.
The module should expose these as sensitive outputs, or allow users to pass in their own randomly generated passwords.
Found a bug? Maybe our Slack Community can help.
Describe the Bug
Expected Behavior
im using the following for random password gen:
Environment (please complete the following information):
Anything that will help us triage the bug will help. Here are some ideas:
The text was updated successfully, but these errors were encountered: