A beginner-friendly guide to setting up AWS infrastructure using Terraform! Learn how to automate and manage cloud resources with ease.
✅ Deploy AWS Resources using Terraform
✅ Manage Infrastructure as Code (IaC)
✅ Use Remote State Storage with S3 + DynamoDB
✅ Work with Different Environments (Dev, Staging, Prod)
AWS-Terraform-Workshop/
│── modules/ # Pre-built reusable templates (VPC, EC2, etc.)
│── environments/ # Configurations for different environments (dev/staging/prod)
│── main.tf # Main Terraform script
│── variables.tf # Input values for easy customization
│── outputs.tf # Output values of deployed resources
│── backend.tf # Remote state setup (S3 + DynamoDB)
│── provider.tf # AWS connection settings
│── README.md # This guide! 📖
🔹 Download Terraform and install it
🔹 Install AWS CLI and set up credentials using:
aws configure
🔹 Ensure you have an S3 bucket & DynamoDB table for storing Terraform state
git clone https://github.com/NotHarshhaa/AWS-Terraform-Workshop.git
cd AWS-Terraform-Workshop
terraform init
👉 This sets up Terraform by downloading necessary plugins and connecting to AWS.
terraform plan # Preview the infrastructure changes
terraform apply # Deploy the AWS resources
⚡ This will create AWS services like EC2, VPC, and more!
terraform destroy
⛔ This will delete all deployed AWS resources.
🔹 Always use Remote State – Store Terraform state in S3 to prevent conflicts.
🔹 Use Modules – Pre-built Terraform modules save time and effort.
🔹 Check Plan Before Applying – Always run terraform plan
first!
🔹 Security First – Use IAM roles and policies carefully.
🔹 Found something to improve? Open a pull request!
🔹 Have questions? Feel free to open an issue!
📝 This project is licensed under MIT License – Free to use and modify!
🚀 Happy Terraforming! 🌍