Skip to content

Clarification: terraform_remote_state or tfe_outputs #1945

@nairb774

Description

@nairb774

I recently upgraded the tfe provider to v0.73.0 and noticed the warning to set a TFE_TOKEN env var or the token argument. I'd been using the tfe_outputs datasource because of the recommendation found on https://developer.hashicorp.com/terraform/language/state/remote-state-data. Could you provide updated documentation on how to create a token for this cross-workspace output reading with scoped permissions?

Use-cases

Read outputs from one workspace in another workspace while easily managing permissions. I'd like to be able to preserve the permissions functionality afforded by these settings in the Terraform Cloud UI if possible:

Image

Attempted Solutions

I've been using tfe_outputs successfully for awhile due to the suggestion on https://developer.hashicorp.com/terraform/language/state/remote-state-data.
I could revert back to using terraform_remote_state if that is the best option.

Proposal

Either update the documentation on the best path for reading tfe_outputs or could you provide documentation on how to make use of this existing security feature with the newly suggested TFE_TOKEN path?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions