DEV Community

Cover image for Terraform Cloud with VCS Workflow(Github)
AF uarabei
AF uarabei

Posted on

Terraform Cloud with VCS Workflow(Github)

VSC integrations are a popular and, quite frankly, a useful tool that allow collaboration between many people. In this article we will learn how to add a Github integration to our Terraform Cloud.

It is assumed that you already have a Terraform Cloud account and an organization.

 

Select your organization and click 'Setting' tab:
Adding Github integration to Terraform Cloud pt1

 

There will be a button 'Connect to version control':
Adding Github integration to Terraform Cloud pt2

 

You will be presented with 3 options for your workflow. We are interested in 'Version Control Workflow':
Adding Github integration to Terraform Cloud pt3

 

I am interested in Github and that's what I will select:
Adding Github integration to Terraform Cloud pt4

 

After selecting your VCS provider you will see a popup asking you to grant permissions to Terraform Cloud to access your Github. Click 'Authorize Terraform Cloud':
Adding Github integration to Terraform Cloud pt5

 

If everything went well you will see a list of your repositories.
Adding Github integration to Terraform Cloud pt6

 

I will select the repo that used for this blog series:
Adding Github integration to Terraform Cloud pt7

 

Then we will be redirected to a settings confirmation page. Important fields here are the 'Apply Method' and 'VSC Branch'. Once you have confirmed the settings click 'Update VSC settings' button at the bottom of the page:
Adding Github integration to Terraform Cloud pt8

 

After that you will a green success message text:
Adding Github integration to Terraform Cloud pt9

 

This is it. You have now connected your Github account to Terraform Cloud!
Thank you for reading and see you in the next article!

Top comments (0)