SR - ICC - 2203A52146 - Lab - Assignment - 7

Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

School of Computer Science and Artificial Intelligence

Lab Assignment # 7
Program : B. Tech (CSE)
Specialization :AIML
Course Title : Introduction to Cloud Computing
Course Code : 22CS142
Semester :V
Academic Session : 2024-2025
Name of Student : ABC
Enrollment No. : 2203A52146
Batch No. : 32
Date :1/11/2024

Submission Instructions:

(All instructions should be followed strictly to avoid deduction of marks)

1. Use the same file to complete the assignment and don’t change the settings.
2. Minimum 10 screen shots of your account should be taken to showcase your work.
3. File Format:
• Submit your assignment as a PDF document (pdf). Ensure the file is named
according to the following convention:
B_No._StudentName_ICC_A-7.
Sample: B_10_Rohit_22A523421_ICC_A7
4. Fill all the entries mentioned on top section.
5. Mention your AWS Academy Virtual Lab Account details as shown in the next page.
6. Don’t write on this page.
7. All answers should be answered from next page only.

Activity:
Creating an Application Load Balancer (ALB) on AWS is a multi-step process. Here’s a
detailed guide to setting it up using the AWS Management Console:

Step 1: Open the Load Balancer Console

1. Log in to your AWS Management Console.


2. Navigate to EC2 Dashboard.
3. In the left-hand menu, under Load Balancing, select Load Balancers.

Step 2: Create a New Load Balancer

1. Click Create Load Balancer.


2. Select Application Load Balancer (ALB).
3. Click Create.
Step 3: Configure Basic Settings

1. Name: Enter a name for your load balancer.


2. Scheme: Choose either Internet-facing (for public access) or Internal (for private
access).
3. IP Address Type: Select IPv4 or Dualstack (if you need IPv6 compatibility).

Step 4: Configure Listeners and Availability Zones

1. Listeners: By default, the ALB includes a listener for HTTP (port 80). You can also
add HTTPS (port 443) for SSL-encrypted connections.
2. Availability Zones: Choose the VPC and select the subnets across Availability Zones
for better redundancy. Ensure each selected subnet has an IP address assigned.

Step 5: Configure Security Settings (for HTTPS)

If adding an HTTPS listener:

1. SSL/TLS Certificate: Select or request a certificate from AWS Certificate Manager


(ACM).
2. Security Policy: Choose an SSL policy (AWS offers predefined policies for secure
configurations).

Step 6: Configure Security Groups

1. Choose or create a Security Group to control access to the ALB.


2. Ensure the security group allows inbound traffic on the listener ports (e.g., 80 for
HTTP and 443 for HTTPS).

Step 7: Configure Routing

1. Create a Target Group: Define a target group where the load balancer will route
requests.
o Target Group Name: Give it a name (e.g., my-target-group).
o Target Type: Choose Instance, IP, or Lambda (depending on the type of
backend service).
o Protocol: Select the protocol for communication between the load balancer
and targets (usually HTTP).
o Port: Specify the port your targets listen on (e.g., 80 for web servers).
2. Health Checks: Configure health checks to monitor the health of targets:
o Path: Set the path (e.g., /health) the ALB will ping to check if targets are
healthy.
o Advanced Health Check Settings: Set thresholds for response time,
healthy/unhealthy thresholds, and intervals.

Step 8: Register Targets

1. Select EC2 instances: Choose the EC2 instances you want to register as targets
within the target group.
2. Add instances to the Target Group: Specify the port and click Add to register.
Step 9: Review and Create

1. Review all configurations.


2. Click Create Load Balancer. It may take a few minutes for the ALB to become
active.

Step 10: Test the Load Balancer

1. Once active, go to the Load Balancers section, select your ALB, and copy the DNS
name.
2. Open the DNS name in a browser to confirm that traffic is being routed correctly.

Conclusion
Your AWS Application Load Balancer is now set up, distributing incoming requests to your
registered targets while performing health checks to ensure that only healthy targets receive
traffic.

Submission Starts here


Enrollment No. : 22234
AWS Academy Account Details:

Screenshots:

You might also like