Skip to content

BobaFettyW4p/OnlineGuestbook

Repository files navigation

Online Guest Book

image

To see an example of this project in action, click here

NOTE: As of 3/30/22, this project is no longer using this infrastructure and has been migrated to a serverless version as hosted here

This repo contains all of the terraform configuration files needed to create a web server infrastructure on AWS to host a simple 'Online Guestbook' webapp:

  1. An EC2 Instance that will act as our web server
  2. A Virtual Private Cloud (VPC) for our web server to reside in
  3. A subnet to handle addressing within the VPC
  4. A routing table to handle routing between the VPC and the wider internet
  5. A security group to authorize traffic routing to and from the VPC
  6. All of which interface with Route53 to utilize the desired domain for name resolution/routing

All non-Route53 resources created as a result of this project are Free Tier-eligible (Route53 should cost ~$1.00 a month to operate, barring large amounts of traffic)

Pre-requisites

  1. AWS account with Power User privileges
  2. A pre-existing key pair. For info on creating one, please refer to this documentation from AWS
  3. terraform locally installed
  4. domain hosted via Route53 or any other DNS service

Usage

  1. Update the domain_name and instance_key variable in terraform.tfvars with your desired values (if Route53 DNS services are not desired, simply delete route53.tf)
  2. Ensure your AWS credentials are properly passed to your terminal session
  3. Apply the terraform configuration:
terraform init

terraform apply

NOTE: As part of the installation, your EC2 instance will utilize the files from the sister repository to configure the web server/app.

  1. Once complete, terraform will return the public IP address of your EC2 instance as the value of the web_instance_ip variable

post install, you may need to delegate DNS authority to the newly-created hosted zone. For more information, please refer to my blog post on how to do this

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages