Scale and Load Balance Your Architecture

Lab Goal In this lab, we aim to create an infrastructure integrated with auto scaling and load balancing. We will try to deploy an application load balancer in this scheme. We start with an infrastructure shown in figure 1 and aim to create the infrastructure pictured in figure 2. Figure 1. Starting infrastructure Figure 2.… Continue reading Scale and Load Balance Your Architecture

Install and Configure CloudWatch Logs Agent on an EC2 Instance

Create Policy and Role Going to IAM, we will try to create a role which allows an EC2 to write and list CloudWatch Logs. Go to IAM and select Policies. Create a new Policy with these JSON attached. { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "logs:CreateLogGroup", "logs:CreateLogStream", "logs:PutLogEvents", "logs:DescribeLogStreams" ], "Resource": [… Continue reading Install and Configure CloudWatch Logs Agent on an EC2 Instance

AWS Elastic Beanstalk

Access the Elastic Beanstalk Environment Under Services, access Elastic Beanstalk. Now in the Elastic Beanstalk dashboard, you would be able to see a pre-deployed environment under the All environments box. Figure 1. Elastic Beanstalk dashboard Click on the environment name to display it for more detailed view. Make sure that the environment health is green… Continue reading AWS Elastic Beanstalk