Integrate Terraform Cloud with GitHub

task australia Updated Sep 10, 2026 1 min read integrate-terraform-cloud-and-git.md
Raw file servicenow.com

Integrate GitHub with Terraform to link workspaces to repositories, enabling version control, change tracking, and rollbacks.

Before you begin

Role required: Terraform admin or DevOps team member

Procedure

  1. Go to the Terraform org created for this application.

  2. Navigate to Settings > Providers.

  3. Select Add a VCS provider.

  4. From the GitHub drop-down list, choose a GitHub.com (Custom).

  5. Select the link Register a new OAuth Application.

    [Omitted image "register-oauth.png"] Alt text: Terraform CVS provider registration form

  6. Select Register application.

  7. Copy the client ID.

  8. Select Generate a new client secret and copy the generated Client Secret.

  9. Go back to the Terraform console where the Add a VCS provider page is open and paste both Client ID and Client Secret.

    [Omitted image "terraform-vcs-form.png"] Alt text: Terraform VCS provider page

  10. Select Connect and continue.

  11. Select Authorize.

    Note: Follow the platform-specific instructions to authorize Terraform Cloud to access your GitHub repository.

    For more details, see the official documentation: https://developer.hashicorp.com/terraform/cloud-docs/vcs/Github-enterprise.

  12. On the Advance Settings page, select Skip and finish.

What to do next

Make a note of the OAuth Token ID and share it with the ServiceNow admin.

[Omitted image "git-oauth-token.png"] Alt text: GitHub OAuth Token ID

Parent Topic:Setting up Terraform and GitHub

Related topics

Publish Terraform templates

Create a Terraform organization for Cloud Account Management in Cloud Workspace

Create Terraform API token

Search documentation
Search document titles and file paths on the australia branch