Setup Projects and Workspaces In Terraform Cloud
Tags: azure, devops, terraform, community
Published: 2023-12-06 23:03:25

Greetings my fellow Technology Advocates and Specialists.

This is __Chapter #3__ of my Terraform Cloud Session.

In this Session, I will demonstrate, how to __Create Project(s) and Workspace(s) including Setup of Workspace(s).__

| __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](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ljbu5ud1x5yrihxb6mbc.png) |

| __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). |

| __CODE REPOSITORY:-__ |
| --------- |

{% github arindam0310018/06-Dec-2023-DevOps__Terraform-Cloud %}  

| __TERRAFORM CLOUD LOGIN URL:-__ |
| --------- |
| https://app.terraform.io/session |
| ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uy8xxt9e41rzxjj2zic1.jpg) |

| __STEP BY STEP PROCESS:-__ |
| --------- |
| 1. Default look of __Terraform Cloud - Projects and Workspaces__. |
| ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8gwe06gd4ok7vwnhjxnx.jpg) |
| 2. Click on the __below highlighted option__ to view the __Terraform Cloud Projects__. |
| ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n890wgf5j76kr8jsvqkn.jpg) |
| Once Clicked, below is how it looks:- |
| ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ap8fsqeqagrtedsjfb8o.jpg) |
| 3. Create __Projects__:- |
| ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nk7lipk0ajvgveba7ndi.jpg) |
| Provide "Project Name" and click on "Create". |
| ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/clyi41f011yd6dc93e4s.jpg) | 
| __Project Created Successfully__. |
| ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ly04kud27kd0jnhoz1wp.jpg) |
| 4. Browse to Azure Devops Project and make sure your Terraform code is ready. Below is how it looks, in my example - |
| ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w38llby0exdbvgi1suxw.jpg) |
| 5. Create __Workspace__:- |
| ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1pfcqp308ucvzyor5bcc.jpg) |
| Choose your __Workflow__. |
| ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3ofkogl8gtzm8n5gz9ew.jpg) |
| Connect to a __Version Control Provider (VCS)__. |
| ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8r885eoelmzvtoohyyx7.jpg) |
| Choose a __repository__. |
| ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o27106j8accx48bhtnfm.jpg) |
| Configure __Workspace Settings__:- |
| Provide a) __Workspace Name__; and b) __Description__  |
| ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n1po9drgnaripnynq913.jpg) |
| Then, expand __"Advanced option"__. |
| Provide "Terraform Working Directory" Details. This corresponds to the path where your Terraform code exists in Devops Project. |
| ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3dy0jic71yevfz9b3m3t.jpg) |
| __Screenshot Continued...__ |
| Click on "Create" | 
| ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z61qkx96oa4181jt42jx.jpg) |
| Workspace Created Successfully!!! |
| Proceed by clicking on "skip this step". |
| ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k1ql46azhpo0phejwi6o.jpg) |
| Configuration uploaded Successfully. |
| ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1linf3771m6q5fq7b6z6.jpg) |
| Below is how it looks under "Projects and Workspaces". |
| ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7on0najo3aegb10x2qyg.jpg) |
| 6. Repeat Step 5 again to create __another workspace__. |
| Below is how it looks:- |
| ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s5aea6047af6z8l9ujuu.jpg) |
| __Screenshot Continued...__ |
| Click on "Create" |
| ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i1v1rzm1wiald6c60xjt.jpg) |
| Workspace Created Successfully!!! |
| Proceed by clicking on "skip this step". |
| ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/46ln3yxhjrtip2kpqw5h.jpg) |
| Configuration uploaded Successfully. | 
| ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r2sub9u3ax0y2iatc92w.jpg) |
| Below is how it looks under "Projects and Workspaces". |
| ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mixyhsxcqmh34kawpa0l.jpg) |

__Hope You Enjoyed the Session!!!__

__Stay Safe | Keep Learning | Spread Knowledge__