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