Home > Software design >  How do I create a Fargate Service without load balancer from AWS CDK?
How do I create a Fargate Service without load balancer from AWS CDK?

Time:09-09

The Context: I am trying to create a Fargate service using aws cdk. I do not require any load balancer in the Fargate service.

The Problem: While aws console allows creation of service without any load balancer like seen in the picture below, I cannot find any ecsPatterns to achieve the same through the cdk. The ecs patterns create the load balancer automatically if not specified.

How do I create a fargate service without load balancer from cdk ?

enter image description here

CodePudding user response:

You can use the FargateService construct.

  • Related