General Procedure

- Create a VPC.
Create two VPCs, one for your gateway and the other for your backend service.
- Create a gateway.
Create a dedicated gateway in VPC 1.
- Create a load balancer.
Create a load balancer in VPC 2.
- Create a VPC peering connection.
Create a VPC peering connection to connect VPC 1 and VPC 2.
- Configure a route.
Configure a route for the dedicated gateway by setting the IP address to the IPv4 CIDR block of VPC 2 where the purchased load balancer is located.
- Create an API.
Create an API and set the backend service address to the IP address of the load balancer.
- Create an ECS.
Create an ECS in VPC 2, and deploy the backend service on the ECS.
- Debug the API.
Verify that the connection to the private network load balancer is successful.