
Terraform Has a Free Infrastructure as Code Tool — Manage Any Cloud with HCL
Terraform provisions AWS, GCP, Azure, and 3,000+ providers with declarative HCL code. Plan changes before applying them. Version your infrastructure like code. Why Infrastructure as Code Manual cloud console clicks: unreproducible, undocumented, error-prone. "Who created this S3 bucket?" "Why is this security group open?" Terraform: your infrastructure is code. Reviewed, versioned, and reproducible. What You Get for Free Declarative config (HCL): provider "aws" { region = "us-east-1" } resource "aws_instance" "web" { ami = "ami-0c55b159cbfafe1f0" instance_type = "t3.micro" tags = { Name = "web-server" } } resource "aws_s3_bucket" "data" { bucket = "my-app-data" } resource "aws_rds_instance" "db" { engine = "postgres" instance_class = "db.t3.micro" allocated_storage = 20 } The workflow: terraform init # download providers terraform plan # preview changes (what will be created/changed/destroyed) terraform apply # execute changes terraform destroy # tear everything down terraform plan is
Continue reading on Dev.to DevOps
Opens in a new tab


.jpg&w=1200&q=75)

