Skip to content

Fix arguments for tfe_outputs data source #240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions website/docs/cloud-docs/workspaces/state.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -232,16 +232,13 @@ By default, new workspaces in HCP Terraform do not allow other workspaces to acc

To configure a `tfe_outputs` data source that references an HCP Terraform workspace, specify the organization and workspace in the `config` argument.


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

You must still properly configure the `tfe` provider with a valid authentication token and correct permissions to HCP Terraform.

```hcl
data "tfe_outputs" "vpc" {
config = {
organization = "example_corp"
workspaces = {
name = "vpc-prod"
}
}
organization = "example_corp"
workspace = "vpc-prod"
}

resource "aws_instance" "redis_server" {
Expand Down