DevOps Classroomnotes 17/May/2022

Terraform

  • Software isn’t done until you deliver it to the customers.
  • What Terraform Does?
    Preview

Infrastructure as code (IAC)

  • The idea behind IAC is that you write & execute the code to define, deploy, update and destroy your infrastructure
  • Consider the following as the architecture of Redbus Application
    Preview
  • Now lets assume RedBus is working on AWS
    Preview
  • Now lets assume Redbus is working on Azure
    Preview
# AWS
resource "aws_instance" "app" {
    instance_type       = "t2.micro"
    ami                 = "ami-892347389247"
    availability_zone   = "us-west-2a"
}

# Azure 
resource "azurerm_vm" "app" {
    size                = "Standard_B1s"
    vmimage             = "ubuntu2004LTS"
    location            = "eastus"
}

#vmware

resource "vmware_vm" "app"  {
    cpu     = "2"
    ram     = "4GB"
    image   = "ubuntu"  
}

Preview

  • The major concepts of terraform are

    • Provider:
      • Where we can create infrastructure
    • Resource:
      • What has to be created
    • DataSource:
      • Query information about anything in the Provider
  • Relevance of Terraform in CI/CD Pipeline
    Preview

Machine Setup For DevOps

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