Skip to content

ApplicationLoadBalancedFargateService CDK construct: currently there is no way to specify idleTimeout for the load balancer #12913

@anvisergeev

Description

@anvisergeev

Hello.

Currently there is no way to specify an idleTimeout for the load balancer if we create an ApplicationLoadBalancedFargateService.
Even though we do have such option when we are creating an ApplicationLoadBalancer directly via the ApplicationLoadBalancer construct.

I suggest to implement such option for the ApplicationLoadBalancedFargateService as it is needed very much.

Use Case

I'm using a Fargate service to run a docker container with a 3rd party library that provides http endpoint. This library can take longer than 1 minute to respond (depending on the input) even on the most performant configuration. In that case I'm receiving a 504 Gateway Time-out error from the load balancer. That's why I need a way to specify the idleTimeout for the ApplicationLoadBalancedFargateService.

Proposed Solution

To add a set of load balancer related configuration options to the ApplicationLoadBalancedFargateServiceProps.

Other

Related to the support case 7958289501

Regards,
Anton.

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-ecs-patternsRelated to ecs-patterns libraryeffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.feature/patternFeature requests related to high level L3 pattern librariesp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions