We've finally deployed our application and can view all of our hard work online. Hooray!
Let's review what we covered in this section.
Previously we wrote an Ansible Playbook for deploying our application. In this section of the book we executed it. This meant we connected to our two web servers via SSH and pushed our ZIP in place. We extracted this ZIP file which in turn gave us our Linux binary and all our static content (images, HTML, CSS, ...). Finally we updated
systemd by adding a service for our application and then running it.
The end result is our application is live and being delivered by our EC2 instances.
If you're not planning on going straight into the next section, then please consider removing your infrastructure to save money:
terraform destroy. It's not a critical application and thanks to the nature of Cloud computing you can build it all again very simply by just repeating the instructions in this book.
We now have our application deployed and visible. We've successfully deployed our first application using Terraform and Ansible. Our next steps are to automate this process, which will involve introducing an entirely new tool (GitLab) and some processes (CI and CD).