aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.63k stars 3.91k forks source link

(aws_ecs_patterns): daemon construct prop for NetworkLoadBalancedEc2Service #18200

Open filip-leski opened 2 years ago

filip-leski commented 2 years ago

Description

Create an ECS service with the daemon scheduling strategy via NetworkLoadBalancedEc2Service by setting the daemon construct prop to true, similar to how this can be done for a regular Ec2Service from aws-ecs.

Use Case

I want to use NetworkLoadBalancedEc2Service to create an ECS service with the daemon scheduling strategy.

Proposed Solution

const loadBalancedEcsService = new ecsPatterns.NetworkLoadBalancedEc2Service(this, 'Service', {
  deamon: true,
  ...
}

Other information

No response

Acknowledge

arpadgabor commented 2 years ago

Any chance of getting https://github.com/aws/aws-cdk/pull/18235 or similar PR reviewed for this feature? Or are there any reasons daemon mode is not supported?