How to expose JMX port with AWS Copilot CLI ?

0

How do I open JMX ports when using AWS Copilot CLI to configure ECS / Fargate tasks ?

For example, if I want to use port 5000 as a JMX port number, what configurations should I apply and where should I apply them so that the port is visible outside the container?

Possible locations are: dockerfile, docker compose file, Copilot CLI manifest.yaml.

profile picture
ST Team
asked 10 months ago192 views
1 Answer
0
Accepted Answer

Hello

Greetings for the day!!

You can expose the port in your Copilot CLI manifest.yml. You can set image.port [1] for your primary port and then you can use http.additional_rules [2] to expose additional ports.

Have a fantastic day ahead!!

Reference:

[1] https://aws.github.io/copilot-cli/docs/manifest/lb-web-service/#image-port

[2] https://aws.github.io/copilot-cli/docs/manifest/lb-web-service/#http-additional-rules

AWS
answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions