Company
Date Published
Author
Chris Howe-Jones
Word count
4922
Language
English
Hacker News points
None

Summary

The final installment of a three-part series guides readers through deploying a Clojure web application using HashiCorp Terraform and CircleCI for seamless infrastructure management and deployment. The application, hosted on Docker containers alongside a PostgreSQL database, is deployed on AWS with zero downtime. The guide accommodates users with minimal Clojure experience and provides an option to fork the source code for convenience. Key prerequisites include Java JDK, Leiningen, Git, Docker, and accounts on CircleCI, GitHub, Docker Hub, and AWS. The infrastructure setup includes creating an AWS account and configuring IAM users and key pairs. The blog emphasizes the importance of using Terraform to build a production-like AWS infrastructure, including ECS tasks for the application and database, network load balancers, and auto-scaling groups. It also details how to integrate CircleCI for continuous deployment and manage variables and credentials for seamless operations. The post concludes with instructions for enhancing the application with a search feature and using CircleCI for automated deployment, while also advising on resource teardown to avoid unnecessary costs.