(ecs_patterns): Ability to set entrypoint and command within NetworkLoadBalancedFargateServiceProps
- Dominant language
- TypeScript
- Stars
- 12.9k
- Forks
- 4.6k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 83
Description
### Describe the feature
I'd like to set the entrypoint and command with `NetworkLoadBalancedFargateServiceProps`.
### Use Case
To avoid having to do this:
```ts
const cfnTaskDef = fargateService.taskDefinition.node.defaultChild as ecs.CfnTaskDefinition;
cfnTaskDef.addOverride('Properties.ContainerDefinitions.0.EntryPoint', ['/custom_entrypoint.sh'])
```
### Proposed Solution
Expose entrypoint and command on ApplicationLoadBalancedFargateServiceProps .
```ts
const fargateService = new ecs_patterns.ApplicationLoadBalancedFargateService(this, 'FargateService', {
entrypoint: ["my_entrypoint.sh"],
command: ["command"]
}
```
### Other Information
Exactly the same request as https://github.com/aws/aws-cdk/issues/17092
However, that was for the ALB-version of this pattern, while this one is for the NLB-version.
### Acknowledgements
- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
### CDK version used
2.178.2
### Environment details (OS name and version, etc.)
Apple M1 Pro 16 GB - Sequoia 15.3.1
Contributor guide
Research direction
Locate NetworkLoadBalancedFargateServiceProps and its implementation, then compare the relevant API and behavior with the related ALB request in issue #17092. Confirm how entrypoint and command should be exposed for the NLB pattern and verify that users can configure them directly instead of applying the shown CfnTaskDefinition override.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, typescript
- Domain
- cloud, infrastructure
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100