Please update docs of workspace settings for terraform_remote_state gcs backend

We know the conversation [1].
Please update the page [2] about workspace option, like below:

data "terraform_remote_state" "foo" {
  backend = "gcs"
  workspace = terraform.workspace
  config = {
    bucket  = "terraform-state"
    prefix  = "prod"
  }
}

–
[1] https://github.com/hashicorp/terraform/issues/17153
[2] https://www.terraform.io/docs/backends/types/gcs.html

Hi @tomoh1r,

This workspace option is for the terraform_remote_state data source itself, not for the gcs backend in particular, and so it’s covered in the documentation about terraform_remote_state.

Hi @apparentlymart

Thanks for your reply. I got it.

backend of terraform_remote_state do not respect implicit workspace.