Infrastructure as Code¶
This repo contain the necessary Terraform scripts to build out the AWS infrastructure as outlined in my article, DevOps Automation and IaC
Some of the code snipit is based on the following excellent work (thanks guys!)
-
Hackernoon - Manage AWS VPC as Infrastructure as Code with Terraform
-
Nick Carlton - Terraform: AWS VPC with Private and Public Subnets
AWS Infrastructure¶
Below is a diagram of the AWS infrastructure we will setup using Terraform.

Source Code¶
Setup Instructions¶
After completing the pre-requisites use the instructions below to begin the setup process.
- Setup your AWS credentials
- Create new folder for your terraform scripts and supporting files
- Change to the folder
- Initialize and sync GIT repository
- Run terraform init
- Run terraform plan to test your script
- Terraform Plan — No errors
- If all is good, run terraform apply to kick off the script
More Information¶
Checkout my articles on Medium