aws-ecs-pattern: containerPort
should be PortMapping[]
instead of just number
#28202
Open
1 of 2 tasks
Labels
@aws-cdk/aws-ecs-patterns
Related to ecs-patterns library
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
When using for example
ApplicationLoadBalancedFargateService
you can pass intaskImageOptions
.However, the
containerPort
is from typenumber
but should be aPortMapping[]
instead.I ran into the issue that I needed that because my container exposed multiple Ports thus I had to create a
taskDefinition
due to that.Use Case
Container, which exposes multiple ports. This is possible through
taskDefinition
but would bloat the codebase.Proposed Solution
Instead of
containerPort: number
, it should becontainerPorts: PortMapping[]
.Other Information
No response
Acknowledgements
CDK version used
2.110.0
Environment details (OS name and version, etc.)
MacOS 14.1
The text was updated successfully, but these errors were encountered: