Target groups - Create target group.IP addresses.<your-target-group-name>.HTTP.80.vpc-0c93d1f17635865a7.HTTP./test/health.traffic-port.5.2.5.30.200-399.Create target group.

Open EC2 Console - Load balancers - Create load balancer.
Select Application Load Balancer.

Enter Load balancer name: <your-alb-name>.
Select Scheme: internet-facing.
Select IP address type: ipv4.

Select VPC: vpc-0c93d1f17635865a7.
Select subnet subnet-08b30664885ff91ec (us-east-1a).
Select subnet subnet-06ba3f4e55b68d1f8 (us-east-1b).

Remove default security group.
Select security group: sg-08002e12b1aa827d0.
Enter Listener protocol/port: HTTP:80.

Select Default action: Forward to <your-target-group-name>.
Select <your target group>

Review all fields.
Click Create load balancer.

Wait for ALB status active.
Copy ALB DNS name: <your-alb-dns-name>.
Open ECS Console - Clusters - <your-ecs-cluster-name> - Create service.

Select Task definition family: <your-task-definition-family>.
Select Task definition revision: LATEST.
Enter Service name: <your-ecs-service-name>.

Select Service type: REPLICA.
Enter Desired tasks: 2.

Select VPC: <your-vpc-id>.
Select subnet <your-subnet-id-1>.
Select subnet <your-subnet-id-2>.
Remove default security group.
Select security group: <backend-service-sg>.
Select Public IP: ENABLED.

Select Load balancer type: Application Load Balancer.
Select Use existing load balancer: Yes.
Select Load balancer: <your-alb-name>.
Select Listener: HTTP:80.
Select Target group: <your-target-group-name>.
Enter Health check grace period: 180.
Select Container name: web.
Select Container port: 8080.

Use default listenner.

Enable Service auto scaling.
Enter Minimum task count: 1.
Enter Maximum task count: 4.

Create Target tracking policy.
Enter Policy metric: ECSServiceAverageCPUUtilization.
Enter Target value: 70.
Enter Scale-out cooldown: 300.
Enter Scale-in cooldown: 300.

Create.ACTIVE.2.

HTTP:80 and the health check path is /test/health.internet-facing, the listener is HTTP:80, and the default action forwards to the target group.FARGATE, the scheduling strategy is REPLICA, and the desired count is 2.ENABLED.web on port 8080 with the target group.2/4 and the CPU target policy is 70 with cooldown 60/60.