Terraform allows you to define infrastructure as code, enabling automated, consistent, and repeatable deployments across environments.
provider "aws" {
region = "us-west-2"
}
resource "aws_instance" "example" {
ami = "ami-0c55b159cbfafe1f0"
instance_type = "t2.micro"
tags = {
Name = "TerraformExample"
}
}
resource "aws_s3_bucket" "app_bucket" {
bucket = "my-app-bucket"
acl = "private"
}
Terraform empowers DevOps teams to manage infrastructure declaratively, safely, and consistently, reducing errors and enabling automation.