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
已提問 1 年前檢視次數 207 次
1 個回答
0
已接受的答案

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
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南