Adding more nodes to the infrastructure, as proposed in the basic architecture of this solution, means we have to change some Terraform files. The first one we will change is the one where the EC2 instances are defined.
Performing changes to the Terraform configuration
instance.tf
The functional composition of the frontend servers is going to change a lot in this version of the infrastructure. The first instance will serve regular web UI traffic, the second will serve only API traffic, and a third instance will be created to handle Git-SSH traffic:
resource "aws_instance" "FRONTEND_C" {
ami = "${lookup(var.aws_ubuntu_amis,var.region)}"
subnet_id = "${aws_subnet.public-frontend_az...