Skip to content

This repo contains steps for the creation of Application Load Balancer

Notifications You must be signed in to change notification settings

Nambiappan/awsAppLB_CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

awsAppLB_CLI

This repo contains steps for the creation of Application Load Balancer

Step1 : Create the required number of EC2 Instance

Step2 : CREATING A LOAD BALANCER

From the CLI trigger the below commands

Inputs to the CLI-> Subnets Details and Security Group Details

SYNTAX→ aws elbv2 create-load-balancer --name --subnets <SUBNET ID OF INSTANCE 1> <SUBNET ID OF INSTANCE 2> --security-groups

Step3 : Create n Target Groups

Inputs to the CLI-> VPC ID

SYNTAX→ aws elbv2 create-target-group --name --protocol HTTP --port 80 --vpc-id

Step4 : Register the Targets with their Respective Target groups

Inputs to the CLI-> TARGET GROUP ARN and Instance ID

SYNTAX→ aws elbv2 register-targets --target-group-arn --targets Id=

Step5 : Creating Listener Default Rules

Inputs to the CLI -> LOAD BALANCER ARN. and Target Groups ARN

SYNTAX→ aws elbv2 create-listener --load-balancer-arn --protocol HTTP --port 80 --default-actions Type=forward,TargetGroupArn=

Step 6: Creating Listeners for other rules

Inputs to the CLI -> LISTENER ARN and TARGET GROUP ARN

SYNTAX→ aws elbv2 create-rule --listener-arn --priority 10 --conditions Field=path-pattern,Values='/images/*' --actions Type=forward,TargetGroupArn=

Steps 7: Verifying the health of the Target Groups

Inputs : TARGET GROUP ARN

SYNTAX→ aws elbv2 describe-target-health --target-group-arn

About

This repo contains steps for the creation of Application Load Balancer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published