aws / aws/aws-cdk

(aws-ecs): (ECS Patterns: Support Latest Task Definition Revision for ApplicationLoadBalancedFargateService)

Open
#29,662 3 comments 11 reactions 0 assignees View on GitHub
@aws-cdk/aws-ecs effort/medium feature-request p2
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

### Describe the feature

Introduce the ability to specify the latest task definition revision automatically for ApplicationLoadBalancedFargateService within ECS patterns, akin to the recent enhancement in ECS services. This would enable seamless updates without manually updating the task definition revision in the CDK code.

#26983 #27036

### Use Case

Currently, when deploying applications using ApplicationLoadBalancedFargateService, specifying the latest task definition revision requires manual updates. This is cumbersome and error-prone, especially for teams frequently updating applications.

### Proposed Solution

Implement a mechanism within ECS patterns, particularly for ApplicationLoadBalancedFargateService, to reference the latest task definition revision automatically. This could involve adding an option to use the latest revision within the CDK construct or a similar approach to ensure consistency across ECS services and patterns.

### Other Information

While the recent update to ECS services addresses this for services directly, extending this capability to ECS patterns would streamline application deployments further, ensuring consistency and reducing manual overhead. This feature would be particularly beneficial for continuous deployment pipelines and environments where application updates are frequent.

### Acknowledgements

- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### CDK version used

2.134.0

### Environment details (OS name and version, etc.)

MacOS Sonoma 14.2.1

Contributor guide

Open the contributing guide

Research direction

Start by reading the ECS service enhancement referenced in #26983 and #27036, then locate ApplicationLoadBalancedFargateService in the ECS patterns implementation. Done means this construct can reference the latest task definition revision automatically, with behavior consistent with ECS services.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
cloud, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.