DevOps Classroom notes 14/Dec/2023

Concepts of Terraform

  • Provider:
    • Provider in terraform is the destination where the resources are supposed to be created.
    • Refer Here for all the providers
  • Resource:
    • Resource in terraform refers to the infrastructure to be created
      Preview
  • Arguments:
    • inputs are referred as arguments
  • Attributes

    • outputs are referred as attributes
  • Sample terraform for Azure
provider "azurerm" {
  features {

  }
}

resource "azurerm_storage_account" "test" {
  name = "test"
  resource_group_name = "test"

}
  • Sample terraform for Aws
provider "aws" {
  region = "us-west-2"
}

resource "aws_s3_bucket" "my" {
    bucket = "idontknowltagain"

}

Setting up Terraform

  • Softwares:

    • Windows:
    • Mac:
      • Homebrew Refer Here
      • Git brew install git
      • Visual Studio code: brew install --cask visual-studio-code
    • Visual Studio Code
    • AWS CLI

      • mac brew install awscli
      • windows choco install awscli -y
    • Azure CLI

      • mac brew install azure-cli
      • windows: choco install azure-cli -y
    • Terraform Refer Here
      • windows choco install terraform -y
    • Refer Here for video to setup your workstation.

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 Responsive Web Designing 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