Integrate Terraform Cloud with GitHub
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
-
Go to the Terraform org created for this application.
-
Navigate to Settings > Providers.
-
Select Add a VCS provider.
-
From the GitHub drop-down list, choose a GitHub.com (Custom).
-
Select the link Register a new OAuth Application.
[Omitted image "register-oauth.png"] Alt text: Terraform CVS provider registration form
-
Select Register application.
-
Copy the client ID.
-
Select Generate a new client secret and copy the generated Client Secret.
-
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
-
Select Connect and continue.
-
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.
-
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
Create a Terraform organization for Cloud Account Management in Cloud Workspace
---
title: Integrate Terraform Cloud with GitHub
description: Integrate GitHub with Terraform to link workspaces to repositories, enabling version control, change tracking, and rollbacks.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/australia/it-operations-management/cloud-account-management/integrate-terraform-cloud-and-git.html
release: australia
product: Cloud Account Management
classification: cloud-account-management
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [Setting up Terraform and GitHub, Provisioning modes in Cloud Workspace, Setting up AWS cloud, Configuring cloud providers, Configure, Cloud Account Management, ITOM Cloud Accelerate, IT Operations Management]
---
# Integrate Terraform Cloud with GitHub
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](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](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/cloud-account-management/about-terraform-git-and-servicenow_0.md)
**Related topics**
[Publish Terraform templates]()
[Create a Terraform organization for Cloud Account Management in Cloud Workspace]()
[Create Terraform API token]()
| title | Integrate Terraform Cloud with GitHub |
| description | Integrate GitHub with Terraform to link workspaces to repositories, enabling version control, change tracking, and rollbacks. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/australia/it-operations-management/cloud-account-management/integrate-terraform-cloud-and-git.html |
| release | australia |
| product | Cloud Account Management |
| classification | cloud-account-management |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Setting up Terraform and GitHubProvisioning modes in Cloud WorkspaceSetting up AWS cloudConfiguring cloud providersConfigureCloud Account ManagementITOM Cloud AccelerateIT Operations Management |