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
質問済み 10ヶ月前200ビュー
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
回答済み 10ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ