Hi guys,
I’ve been searching without success, but I would like to know if it is possible to access the backend configuration from within another resource.
I’m using the PG backend, configured through the command line with the backend-config arguement, so that the conn_str is unique.
We’re using a single database, so all module are sharing the same conn_str, only the workspace is different.
However, if I want to use a terraform_remote_state, that use the same PG connection string, I have to replicate the configuration as I cannot access value of the backend.
I tried terraform.backend.conn_str and terraform.pg.conn_str but that doesn’t exist, only terraform.workspace does.
Is accessing the backend configuration currently supported? Or do I have to duplicate the configuration for every module?
Thanks,
Philippe