apprunner-roadmap icon indicating copy to clipboard operation
apprunner-roadmap copied to clipboard

Multiple ports

Open oscarthorn opened this issue 2 years ago • 2 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do * not help prioritize the request If you are interested in working on this issue or have submitted a pull request, please leave a comment

Tell us about your request As of now it only seems possible to expose one port from an app runner service. But there are many instances where you might want to expose several ports. For example having rest api on one port and gRPC on different port. Or in our case running an otel collector that exposes the health check on a different port from the receiver. It would be very useful is app runner supported this.

Describe alternatives you've considered If you need multiple ports there really are no alternatives.

oscarthorn avatar Oct 19 '23 13:10 oscarthorn

Would like to document another reason this is helpful.

When running tofu test on AppRunner, I have a hacky method to get AppRunner to start up, which entails populating ECR repos with an nginx image, which uses port 80. However, I am trying to set up a terragrunt way to get AppRunner up, and it still is checking for 8000 because I don't have the "is_tofu_test_environment" variable set when I'm actually spinning up infrastructure.

ucfchandra avatar Oct 24 '24 15:10 ucfchandra

Well another reason is when using spring boot, you usually should not expose the metrics and health checks on same endpoint as all clients (even if auth enabled) can call these end points and it has happened in the past that even someones heap dumps were exposed like this. so usually you can setup a different port for management endpoints that is never exposed out of the firewall, but here we don't expose it at all or expose on the same port.

gurukulkarni avatar Oct 23 '25 15:10 gurukulkarni