serverless-fargate icon indicating copy to clipboard operation
serverless-fargate copied to clipboard

Add support for portMappings

Open erichcarson opened this issue 2 years ago • 2 comments

Add support for portMappings as part of the AWS::ECS::TaskDefinition.

Verification:

  • Updated unit tests and added portMappings.
  • Used this branch with my projects serverless.yml to successfully deploy a task with the correct exposed ports.
  tasks:
    my-task:
      image: my-image
      memory: "0.5GB"
      cpu: 256
      architecture: ARM64
      portMappings:
        - containerPort: 3478
          hostPort: 3478
          protocol: "udp"
        - containerPortRange: "10000-20000"
          protocol: "udp"
Screenshot 2023-07-20 at 11 59 49 AM

erichcarson avatar Jul 20 '23 19:07 erichcarson

Ping @eddmann.

erichcarson avatar Jul 31 '23 21:07 erichcarson

This would be great to have

linuxmant avatar Jul 02 '24 16:07 linuxmant

Thank you for the PR 🙏🏻 , apologies for the current merged/revert, I was just garnering additional insight into this. Just wondering can this not already be achieved with the cloudFormationResource extension property?

eddmann avatar Jul 12 '24 17:07 eddmann