DEV Community

Cover image for Run Pipeline in Terraform Cloud
Arindam Mitra
Arindam Mitra

Posted on • Edited on

Run Pipeline in Terraform Cloud

Greetings my fellow Technology Advocates and Specialists.

This is Chapter #4 of my Terraform Cloud Session.

In this Session, I will demonstrate, how to Run Pipeline in Terraform Cloud.

ADDITIONAL CONTRIBUTOR(S):-
Anand Arbone - @anandarbone

I had the Privilege to talk on this topic in ONE Azure Communities:-

NAME OF THE AZURE COMMUNITY TYPE OF SPEAKER SESSION
Azure Spring Clean - 2024 Virtual
EVENT ANNOUNCEMENTS:-
REQUIREMENTS:-
1. Terraform Cloud and Organization(s).
2. Azure Devops Organization(s) and Project(s).
3. Integrate Terraform Cloud Organization and Azure Devops Services (VCS Provider).
4. Project(s) in Terraform Cloud.
5. Workspace(s) in Terraform Cloud.
CODE REPOSITORY:-

Terraform Cloud Series:-

CONTRIBUTORS:-
1. Arindam Mitra
2. Anand Arbone

Greetings to my fellow Technology Advocates and Specialists.

Below is the list of all the blogs published under Terraform Cloud Series:-




TERRAFORM CLOUD LOGIN URL:-
https://app.terraform.io/session
STEP BY STEP PROCESS:-
1. Configure the Workspace Variables.
Workspaces are a) 01_RG; b) 02_Log_Analytics
We start with "01_RG" Workspace. Click on "Configure variables".
Click on "Add variable".
The environmental variables configured are - a) ARM_CLIENT_ID - App Registration which has required Access (Contributor) on the Subscription; b) ARM_CLIENT_SECRET - App Registration Secret; c) ARM_SUBSCRIPTION_ID - The Subscription where Terraform code will deploy all Azure Resources; and d) ARM_TENANT_ID - Azure Tenant
Execute the "Run" to deploy a Resource Group.
Plan was Successful.
Confirm Apply.
Apply was Successful.
Validate the Resource Group Deployment in Subscription.
Validate the State file of the Resource Group Deployment in Terraform Cloud.
Below is how it looks under "Projects & workspaces".
We repeat the same steps for workspace "02_Log_Analytics".
"Environment variables" configured.
Plan and Apply Successful.
Validate the Log Analytics Workspace Deployment.
Validate the State file of the Log Analytics Workspace Deployment in Terraform Cloud.
Below is how it looks under "Projects & workspaces".

Hope You Enjoyed the Session!!!

Stay Safe | Keep Learning | Spread Knowledge

Top comments (0)