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:-
Image description
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
Image description
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".
Image description
Click on "Add variable".
Image description
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
Image description
Execute the "Run" to deploy a Resource Group.
Image description
Image description
Plan was Successful.
Image description
Confirm Apply.
Image description
Apply was Successful.
Image description
Validate the Resource Group Deployment in Subscription.
Image description
Validate the State file of the Resource Group Deployment in Terraform Cloud.
Image description
Image description
Below is how it looks under "Projects & workspaces".
Image description
We repeat the same steps for workspace "02_Log_Analytics".
"Environment variables" configured.
Image description
Plan and Apply Successful.
Image description
Validate the Log Analytics Workspace Deployment.
Image description
Validate the State file of the Log Analytics Workspace Deployment in Terraform Cloud.
Image description
Below is how it looks under "Projects & workspaces".
Image description

Hope You Enjoyed the Session!!!

Stay Safe | Keep Learning | Spread Knowledge

Top comments (0)