DevOps Classroomnotes 15/Mar/2023

Terraform

  • Terraform is an opensource tool developed by HashiCorp which can create infra in almost any virtual platform
  • Terraform uses a language which is called as Hashicorp Configuration Language (HCL) to express desired State.

Terms

  • Resource: This is the infrastructure which you want to create
  • Provider: This refers to where you want to create infrastructure
  • The inputs which we express in teraform are called as arguments
  • The output given by terraform is referred as attribute

Installing terraform

  • Refer Here for official docs
  • Refer Here for the changes
  • We have executed the commands in following order



Developer Environment

  • Install Visual Studio Code
  • Ensure Terraform Extension is installed
  • Refer Here for installing necessary softwares on your windows system

Lets try to create a basic terraform template

  • Create a new folder hellotf
  • open visual studio code
  • Create a new file main.tf with extension .tf
  • Choose any provider Refer Here
  • Refer Here for aws provider
  • Lets do the same with azure Refer Here for the changes
  • Terraform basic workflow
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a comment

Turn on JavaScript to leave a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Customized Social Media Icons from Acurax Digital Marketing Agency
Exit mobile version
%%footer%%