DEV Community

Cover image for Day 10: Networking in ECS: VPCs, Security Groups, and Load Balancers
Pragnesh Patel
Pragnesh Patel

Posted on

Day 10: Networking in ECS: VPCs, Security Groups, and Load Balancers

After Day 9, let's secure and balance traffic.

Step 1: VPC Setup

If not default, create VPC: Console > VPC > Create VPC > Resources: VPC and more.

Subnets: Public for internet access.

VPC

Step 2: Security Groups

Create SG: Allow inbound TCP 3000 from anywhere (for testing).

Attach to service.

SG

Step 3: Application Load Balancer (ALB)

Create ALB: EC2 > Load Balancers > Create > ALB.

Target group: IP targets, port 3000.

In service creation/update, add load balancer.

Test: ALB DNS name.

ALB

Today’s Takeaway

Networked and load-balanced!

What’s Next?
In Day 11, we’ll scale ECS services.

Top comments (0)