DEV Community

GargeeBhatnagar for AWS Community Builders

Posted on

Peruse of Customized Network Load Balancer Parameters Deployed through CloudFormation

“ I have checked the documents of AWS to peruse of customized network load balancer parameters deployed through cloudformation. It's easy to deploy the nlb custom parameters using cloudformation. The Pricing is based on nlb running per hour(or partial hour) and number of nlb capacity units used per hour(or partial hour).”

A Network Load Balancer(NLB) functions at the fourth layer of the open systems interconnection model. It can handle millions of requests per second. After the load balancer receives a connection request, it selects a target from the target group of the default rule. It attempts to open a TCP connection to the selected target on the port specified in the listener configuration.

AWS CloudFormation is a service that helps you model and set up your AWS resources so that you can speed less time managing those resources and more time focusing on your applications that run in AWS.

In this post, you will experience the peruse of customized network load balancer parameters deployed through cloudformation. Here I have created a network load balancer with custom parameters through cloudformation.

Prerequisites

You’ll need an Amazon EC2 Server for this post. Getting started with amazon EC2 provides instructions on how to launch an EC2 Server. For this blog, I assume that I have an ec2 instance created.

Architecture Overview

Image description
The architecture diagram shows the overall deployment architecture with data flow, cloudformation, ec2 instance and network load balancer.

Solution overview

The blog post consists of the following phases:

  1. Create of Network Load Balancer from AWS CloudFormation
  2. Update of Cloudformation Stack for Register the Target as EC2 Instance in NLB Target Group

I have a ec2 instance as below →
Image description

Phase 1: Create of Network Load Balancer from AWS CloudFormation

  1. Open the cloudformation console and create a stack with customized nlb parameters template.

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Phase 2: Update of Cloudformation Stack for Register the Target as EC2 Instance in NLB Target Group

  1. Open the cloudformation console and update a stack for the nlb target group with a new updated template.

Image description

Image description

Image description

Image description

Clean-up

Delete CloudFormation Stack and EC2 Instance.

Pricing

I review the pricing and estimated cost of this example.

Cost of Elastic Compute Cloud = $0.1116

Cost of Network Load Balancer(NLB/hour and NLCU/hour) = $0.0285

Total Cost = $(0.1116 + 0.0285) = $0.1401

Summary

In this post, I showed “how to peruse of customized network load balancer parameters deployed through cloudformation”.

For more details on AWS CloudFormation, Checkout Get started AWS CloudFormation, open the AWS CloudFormation console. To learn more, read the AWS CloudFormation documentation.

For more details on Load Balancers, Checkout Get started Load Balancers, open the Load Balancers console. To learn more, read the Network Load Balancer documentation.

Thanks for reading!

Connect with me: Linkedin
Image description

Top comments (0)