Hi,
I have a script where I create a managed RabbitMQ cluster and then I used the credentials returned by the service to initialise the rabbitmq provider. Something like this:
provider rabbitmq {
endpoint = "https://${module.cloudamqp_broker.internal_host}"
username = module.cloudamqp_broker.admin_username
password = module.cloudamqp_broker.admin_password
}
It used to work with Terraform version 0.13 but now I’m trying to update to version 1 and I’m getting required field is not set
errors for username and password, which I guess means providers can no longer reference other resources. Is there any way to fix this other than by splitting the script in two?
Thanks.