In my terraform I’m creating multiple mysql engines with random passwords using the helm_release resource of the helm provider.
I would then like to use these newly available mysql engines in a mysql provider block, so I can create databases in them and populate those.
Essentially, I would create the infrastructure using terraform and then setup databases, database users and database content, for an application to use (which I also deploy using terraform, offcourse.)
How would I go about this?
I’ve been trying to use variables inside providers, but this seems unsupported, and has an open github issue at https://github.com/hashicorp/terraform/issues/3656
Thanks for any pointers!