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
gefragt vor 10 Monaten200 Aufrufe
1 Antwort
0
Akzeptierte Antwort

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
beantwortet vor 10 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen