Skip to content

dispact/terraform-custom-vpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Configuration for AWS VPC, EC2 and RDS

This project contains terraform configuration files on creating EC2 and RDS instances inside a Custom VPC on AWS. Here is the architecture of what will be created:

Custom VPC architecture for AWS

Set Up

Prerequisites

Create the Secrets file

Create a secrets file called secrets.tfvars and populate it with the follow secrets:

  • db_username <-- this is going to be the master user for RDS
  • db_password <-- this is going to be the RDS master user's password
  • my_ip <-- this is going to be your public IP

Running the Configuration

Initializing the Terraform directory

Run the command: terraform init

Apply the Terraform Config to AWS

Run the command: terraform apply -var-file="secrets.tfvars"

To destroy everything that was created by the Terraform Config

Run the command: terraform destroy -var-file="secrets.tfvars"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages