Terraform cloud
Tags: terraform, cloud, iac, terraformcloud
Published: 2024-03-08 20:37:53


**Terraform Cloud** 

Go to the link [Terraform Cloud](https://app.terraform.io/public/signup/account?product_intent=terraform&utm_source=google&utm_medium=sem&utm_offer=signup&utm_campaign=CLOUD_EMEA_UKI_ENG_BOFU_PRACTITIONER_SEM_A_ALL_TERRAFORM_CLD_GG_BRAND_-_Obility&utm_content=terraform+cloud-144080651246-645564370239&utm_channel_bucket=paid) and register for a new account



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iyh328zssghenxmcqfuy.png)

After the successful registration, we need to confirm the email

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qmcqw4ntcgso4iqk33ht.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wqnjo9awtpsd3mymwklt.png)


Create an organisation 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/myf6hv2ld9x2tbxn71qn.png)



**Pricing in Terraform Cloud**

https://www.hashicorp.com/products/terraform/pricing


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g49knvkjw2igcjpv16xh.png)

Create a workspace in terraform cloud


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/21g3wpuf2fnuivnclme9.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4l5xtdx3kxriwmkckx2o.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1tohkqo5peluxzb8gcsg.png)

workspace creation process will take some time and we need to wait



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j2if4qg1buh98vq132u9.png)


Click on Version control and configure with github


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o84ytxp5ovnugqo3kmz5.png)



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u6o7xfxqdir9d38w7ilu.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d8z87huwvgia90r97a5g.png)

Select the github organisation - 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4ryimparlvnhff89h8ph.png)

Create a github repo in the selected organisation with name as terraform_cloud


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uy1i2iw2p9hi05qiogw7.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/89xns6as4x037gknfqmf.png)



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2kpzpmnuvpypkwvp0vyn.png)



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h1ytcb1pnn8tnbehb01w.png)



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0ijzmsmk9hmefqnfy1gi.png)

**Update Environmental Variables:**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xd61bk68y7g2la8uvil8.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jgx1mmo846z0d08uvncn.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/musz66skh18d0xturhor.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4gagay1ztboc95b7nm91.png)



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e4thy80kdifnnfk1c83z.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bw9ry18c2e9snpg83uqb.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/scwr9jstawkqzheqiskx.png)




![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iu4h63p7i24uilxvcvrk.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1n4esz66y7hm7oy79kw2.png)



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/inpepa879z1emwdviyr1.png)

State file :

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o0r3gyrropgaph2px5x8.png)


Destruction of resources:


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/02q6zbmsvl9hkmar5367.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sxga51mlw40kamizj0kh.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/85crinfwka6j7bo2bm0b.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n62ycnu2sgvt2ezzbvr4.png)


Conclusion : Discussed about terraform cloud, creation and deatruction of resources using github repo.

💬 If you enjoyed reading this blog post and found it informative, please take a moment to share your thoughts by leaving a review and liking it 😀 and follow me in linkedin