Securing your Consul cluster
Before we start securing your cluster, I need to set forth a word of caution. Things can get a little tricky when you work with security enforcement, especially when you accidentally lock yourself out of your own cluster. Luckily, we're just working with a simple development system here. However, in a production environment, extreme care must be taken. I've tried to automate as much as possible, but at any point in this process, you can destroy the entire infrastructure set and rebuild it. Ah, the wonder and beauty of Terraform and ephemeral infrastructure!
All the code for this section can be found in the following GitHub repository:
https://github.com/PacktPublishing/Simplifying-Service-Management-with-Consul/tree/main/ch3
Creating the image
If you've already forked or downloaded the repository, you should have the corresponding folder for this chapter. This is where we'll be doing all our work. We are going to be building...