Skip to content

LVNCloudSolutions/terraform-projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-projects

Boilerplate Terraform projects.

Project 1: Deploying an EC2 Instance

This project demonstrates how to deploy an EC2 instance using Terraform.

Files

  • main.tf:
    • Contains the Terraform configuration for deploying the EC2 instance.
  • variables.tf:
    • Defines the variables used in the Terraform configuration.

Usage

  1. Initialize Terraform:
    terraform init
  2. Plan with Terraform:
    terraform plan
  3. Deploy with Terraform:
    terraform apply
  4. Destroy with Terraform:
    # Show the plan - requires confirmation to perform.
    terraform destroy
    # Create the destroy plan and output to a file for sharing.
    # Then use that plan to destroy i..
    terraform plan -destroy -out="destroy.tfplan"
    terraform apply "destroy.tfplan"

About

Boilerplate IaC for AWS with a VPC, EC2 instanc, and S3 bucket.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages