Skip to content

GitHub Action to fetch outputs from a Terraform Cloud workspace

License

Notifications You must be signed in to change notification settings

TakeScoop/terraform-cloud-outputs-action

Repository files navigation

terraform-cloud-outputs-action

GitHub Action to fetch outputs from a Terraform Cloud workspace

Usage

Given a workspace output foo in the Terraform Cloud organization org and workspace name name

output "foo" {
  value = "bar
}
- uses: takescoop/terraform-cloud-outputs-action@v0.1
  id: action
  with:
    workspace: name
    organization: org
    token: ${{ secrets.terraform_cloud_token }}
- name: Test string
  run: test "${{ steps.action.outputs.foo }}" == "bar"