i usually do like this, create data.tf file and put in there
in the module i call the remote state with this way, example:
${data.terraform_remote_state.vpc.id}
In previous releases, a reference to a vpc_id output exported by the remote state data source might have looked like this:
data.terraform_remote_state.vpc.vpc_id
This value must now be accessed via the new outputs attribute:
data.terraform_remote_state.vpc.outputs.vpc_id