Closed ncthanh2000 closed 1 year ago
Note that the parameter is called db_remote_state_key
, so this is the key for the database. The webserver-cluster
module uses a terraform_remote_state
data source to look up the state at this key and reads outputs from it (e.g., the DB address and port). So I believe pointing it at the mysql key is correct.
The file is
stage/services/webserver-cluster/main.tf
Should
remote_state_key
have beenstage/services/webserver-cluster/terraform.tfstate
instead?