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
    Preview
    Preview
    Preview
    Preview

Developer Environment

  • Install Visual Studio Code
  • Ensure Terraform Extension is installed
    Preview
  • 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
    Preview
  • Terraform basic workflow
    Preview

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

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

Please turn AdBlock off
Animated Social Media Icons by Acurax Wordpress Development Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube