Skip to content

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!)

AWS Infrastructure


Below is a diagram of the AWS infrastructure we will setup using Terraform.

Source Code


TF-IAC-2019 Code

Setup Instructions


After completing the pre-requisites use the instructions below to begin the setup process.

  1. Setup your AWS credentials
  2. Create new folder for your terraform scripts and supporting files
  3. Change to the folder
  4. Initialize and sync GIT repository
  5. Run terraform init
  6. Run terraform plan to test your script
  7. Terraform Plan — No errors
  8. If all is good, run terraform apply to kick off the script

More Information


Checkout my articles on Medium