DevOps Classroom notes 04/Aug/2026

Terraform – Infra as a code

  1. terraform init – download plugins to local directory
  2. terraform plan – its shown details of your changes
    1. create resource
    2. destory resources
    3. modified resources
  3. terraform apply – excute plan changes
  4. terraform destory – remove all resources created by terraform

*.tf

installations:

choco install terraform -y

create file provider.tf add below data

terraform {
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 6.0"
    }
  }
}

# Configure the AWS Provider
provider "aws" {
  region = "us-east-1"
}

Main.tf

resource "aws_s3_bucket" "first_bucket" {
    bucket = "qt-demo-terraform-s3-demo"
}

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