Return to the ECS console

Scroll down to the bottom, in the Services section, click Create

In the Deployment configuration section, we will configure deployment parameters for the backend service:
FCAJResbar-task-be - the task definition created in the previous stepbackend
Next, configure compute for the service:

Configure the deployment strategy:
Deployment type: Select Rolling update - Amazon ECS replaces the current running version of your application with a new version. The service scheduler uses the minimum and maximum healthy percentage parameters to determine the deployment strategy. Rolling deployments are simpler to set up but provide less control over the deployment process and traffic routing.
Blue/green deployment: Provisions an entirely separate environment running alongside the current one—Blue (current) and Green (new). Traffic is routed to the new environment only after the green tasks pass health checks. Usually managed via AWS CodeDeploy and Application Load Balancer, it provides near-instant rollbacks if issues arise.
Linear deployment: Shifts traffic to the new version in fixed increments over specific time intervals (e.g., 10% every 5 minutes until reaching 100%). This provides a predictable, step-by-step ramp-up while allowing performance observation under increasing load.
Canary deployment - Routes a small percentage of incoming production traffic (e.g., 10%) to the new version for a set duration while monitoring metrics and error rates. Once verified stable, the remaining traffic (90%) shifts over, minimizing blast radius for critical releases.
Min running tasks: Keep 100% - ensure at least 100% of desired tasks are running during deployment
Max running tasks: Keep 200% - allow up to 200% of tasks during deployment, enabling zero-downtime deployment

Now, we will let this Service know which network and subnet it should be placed in.

Public IP should be disabled because the traffic is routed to the Service through the Load Balancer.
This section is important; to allow the Frontend Service and Backend Service to communicate, we must configure Service discovery for the Backend Service with the namespace and service created in section 4 earlier.

In reality, we do not need to configure Load balancing for the backend service, as for testing, I will need to use a private network or VPN. However, in this tutorial, I will configure Load balancing, opening 2 listeners for production and testing so that developers/testers can use them for feature testing.
First, configure some information:

In the listener section, we will select Use an existing listener, select HTTP:80

Select Use an existing target group, select FCAJ-Lab-be-tg

Now, I will configure scaling for the container

Configure the scaling policy
ScaleAtThreshold75Percent
Wait a moment, and the service will be created.
