Terraform AWS
Infrastructure as Code for AWS with modular approach.
🚀 Quick Start
provider "aws" {
region = "us-east-1"
}
resource "aws_instance" "web" {
ami = "ami-0c55b159cbfafe1f0"
instance_type = "t2.micro"
tags = {
Name = "WebServer"
}
}
📋 When to Use
- ✅ Creating/managing AWS resources
- ✅ Need version-controlled infrastructure
- ❌ Not for one-off local scripts
🔧 Step-by-Step Instructions
- Install Terraform and configure AWS CLI
- Create
main.tfwith provider and resources - Initialize:
terraform init - Apply:
terraform apply
📦 Dependencies
# Install Terraform
# https://developer.hashicorp.com/terraform/install
# Configure AWS CLI
pip install awscli
aws configure
🧪 Examples
Input: terraform apply in folder with config
Output: EC2 instance created in AWS
🔗 Resources
✅ Validation
- Terraform plan creates without errors
- Resources appear in AWS Console
- State file updates correctly
Source: ssrjkk/claude-skills — distributed by TomeVault.