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
  • 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 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
Social Media Icons Powered by Acurax Web Design Company
Exit mobile version
%%footer%%