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.
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.
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.
GitHub OAuth Token ID
Parent Topic:Setting up Terraform and GitHub
Related topics
Create a Terraform organization for Cloud Account Management in Cloud Workspace