In this new version of the solution, there are some changes in the Terraform part, mainly in the amount of instances. Let's look at the file that contains the AWS EC2 instances. With Terraform, you can create very elaborate structures, but for this example, we only add instances to make it more understandable.
A renewed Terraform configuration
instance.tf
The first machine to add is the Sidekiq node. It will be placed in the frontend servers' security group (SG-frontendservers). As you can see from the following code, the node uses an Amazon Machine Image (AMI), which is defined in the variable.tf file. The instance type is t2.medium; you can find a list of instances types at https://aws.amazon.com/ec2/instance-types...