Skip to content

ValAug/aws-compu-terraform

Repository files navigation

🚀 AWS EC2 AMI Deployment with Terraform

Create and deploy multiple EC2 AMIs dynamically using Terraform

AWS Terraform



🧭 Overview

This repository demonstrates how to use Terraform to build and deploy multiple types of AWS EC2 AMIs dynamically.
It serves as a hands-on reference for anyone creating reusable, scalable infrastructure on AWS.


🖥️ Architecture Diagram

EC2 AMI Diagram


🎯 Purpose

This project illustrates:

  • How to automatically generate multiple EC2 AMIs using Terraform
  • How to scale and template AMI creation based on variables
  • How to structure your IaC for repeatable and automated deployments

If you're looking to understand dynamic AMI provisioning or replicate EC2 environments consistently, this repo is the perfect starting point.


🧰 Prerequisites

Before deploying:


⚠️ Cautions & Notes


🚀 How to Run This Code

Quick Start

This deploys into your AWS CLI’s default profile:

cd aws-compu-terraform
terraform init
terraform validate
terraform apply --auto-approve

Quick Destroy

Remove all created infrastructure:

terraform destroy --auto-approve

📝 Notes & Terraform Commands

  • Clone the repository
  • Navigate into the project directory
  • Run:
Command Purpose
terraform init Initializes working directory & downloads providers
terraform validate Validates syntax and config structure
terraform plan Shows execution plan before applying
terraform apply Deploys the infrastructure
terraform apply -auto-approve Deploys without prompt
terraform destroy Tears down infrastructure
terraform destroy -auto-approve Tear down without prompt
terraform fmt -recursive Formats all Terraform code

🛠️ Built with Terraform ☁️ Deployed on AWS ✨ Developed by Augusto Valdivia

About

Deploy AWS-EC2s with Terraform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages