GitHub – Generic AWS Website Builder Using Terraform

Introduction

In case you were not aware, Terraform is a tool to create infrastructure as code. And AWS is the world’s largest provider of cloud infrastructure. Together they make an automated infrastructure producing pie of awesome. I’m very much a newb with Terraform, and just as much of a newb with AWS. But, that wont stop me from producing content!

Assumptions

The Code:

This code will do a few things. First (but not really… terraform decides what order to execute code), it will provision a new EC2 instance with a pre-created (by you) ssh key-pair and a default NGIX web server. Then, it will assign the EC2 instance a security group. Finally, it will create a Elastic IP for that instance and make it publicly available. If you need this in your life, see the link below to my GitHub:

https://github.com/LittleSeneca/tf-aws

Leave a Comment