Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws-ecs-patterns: Add ApiGatewayLoadBalancedFargateService L3 construct #26435

Open
1 of 2 tasks
pahud opened this issue Jul 19, 2023 · 2 comments
Open
1 of 2 tasks

aws-ecs-patterns: Add ApiGatewayLoadBalancedFargateService L3 construct #26435

pahud opened this issue Jul 19, 2023 · 2 comments
Labels
@aws-cdk/aws-ecs-patterns Related to ecs-patterns library feature-request A feature should be added or improved. p3

Comments

@pahud
Copy link
Contributor

pahud commented Jul 19, 2023

Describe the feature

Running Fargate services with API Gateway and Cloud Map without using ALB/NLB is a pattern that has been published in AWS Architecture Blog. The container team recently has included this pattern into the containersonaws.com website. I recently discussed this with @nathanpeck and we believe we should include this new L3 pattern into aws-ecs-patterns.

Use Case

To allow users to provision Fargate services with API Gateway as the frontend load balancer and Cloud Map as the service discovery.

Proposed Solution

Include the ApiGatewayLoadBalancedFargateService in the aws-ecs-patterns module and the user experience would be like

import { ApiGatewayLoadBalancedFargateService } from 'aws-cdk-lib/aws-ecs-patterns';

new ApiGatewayLoadBalancedFargateService(stack, 'DemoService', {
  vpc,
  cluster,
  taskDefinition,
  desiredCount: 2,
  vpcLinkIntegration: VpcLinkIntegration.CLOUDMAP,
});
}

Other Information

Field Notes: Integrating HTTP APIs with AWS Cloud Map and Amazon ECS Services
https://aws.amazon.com/blogs/architecture/field-notes-integrating-http-apis-with-aws-cloud-map-and-amazon-ecs-services/

API Gateway load balanced Fargate service with Cloud Map using CDK construct
https://containersonaws.com/pattern/ecs-fargate-apigateway-cloudmap-cdk

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.87.0

Environment details (OS name and version, etc.)

mac os x

@pahud pahud added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Jul 19, 2023
@github-actions github-actions bot added the @aws-cdk/aws-ecs-patterns Related to ecs-patterns library label Jul 19, 2023
@pahud pahud added needs-review and removed needs-triage This issue or PR still needs to be triaged. labels Jul 19, 2023
@nathanpeck
Copy link
Member

I support this as a new pattern. It will be ideal for low traffic, low cost deployments for dev or learner workloads. The baseline cost will be much lower than our existing patterns, as API Gateway does not have an constant hourly charge like the other load balancers in our other patterns do

@BwL1289
Copy link

BwL1289 commented Mar 30, 2024

@pahud has there been any progress on this or a release ETA?

@khushail khushail added the p3 label Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-ecs-patterns Related to ecs-patterns library feature-request A feature should be added or improved. p3
Projects
None yet
Development

No branches or pull requests

5 participants