Deploy a Clojure Web Application to AWS Using Terraform

This is the third blog post in a three-part series about building, testing, and deploying a Clojure web application. You can find information on setting up previously mentioned applications like CircleCI in the first post here and the second here.

In this post, we will be focusing on how to use HashiCorp Terraform to stand up a fairly complex infrastructure to host our web application Docker containers with a PostgreSQL container and then use CircleCI to deploy to our infrastructure with zero downtime. If you don't want to go through the laborious task of creating the web application described in the first two posts from scratch, you can get the source by forking this repository and checking out the "part-2" branch.