August 2019
Beginner
608 pages
16h 7m
English
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/. The instance description mentions the subnet, the public key pair, and the security group to be used:
resource "aws_instance" "SIDEKIQ_A" { ami = "${lookup(var.aws_ubuntu_amis,var.region)}" instance_type = "t2.medium" tags { Name = "${var.environment}-SIDEKIQ001" Environment = "${var.environment}" sshUser = "ubuntu" } subnet_id = "${aws_subnet.public-frontend_az-a.id}" ...Read now
Unlock full access