HCP Terraform is more powerful when you integrate it with your version control system (VCS). There are three different ways to connect GitHub.com to HCP Terraform.
In this tutorial, you will set up GitHub.com OAuth access to HCP Terraform by completing the following three steps.
For this tutorial, you will need:
Open HCP Terraform in your browser and navigate to your organization settings. Then, select Version Control | Providers from the left navigation.
Click the Add a VCS Provider button. Select GitHub then GitHub.com (Custom) from the dropdown.
The next page includes instructions to set up your provider by registering a new OAuth application.
In a new browser tab, open GitHub's Register a New OAuth Application page.
Fill out the text fields with the values from the HCP Terraform "Add VCS Provider" page. Then, click "Register application".
GitHub should return a Client ID and Client Secret. You will use these values to set up your HCP Terraform VCS provider.
Navigate to the tab you used to create a new VCS provider.
Enter the Client ID and Client Secret from the previous step to finish setting up your VCS provider. Click "Connect and continue".
This takes you to a page on GitHub.com, asking whether you want to authorize the app. Authorize the HCP Terraform app against GitHub by clicking the green "Authorize <GITHUB_USER>" button.
Your browser will return to HCP Terraform. On the Advanced Settings step, you can optionally restrict this VCS provider to selected projects, configure policy sets, modules, and an SSH keypair.
Click "Skip and finish" to finish adding a VCS provider to your HCP Terraform organization.
You have successfully configured your HCP Terraform organization to access GitHub.com through OAuth connection.
If you had trouble setting up GitHub OAuth, in-depth instructions can be found on the Configuring GitHub.com Access (OAuth) documentation page.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4