Search code examples
jvm-argumentsaws-ecs

how to pass JVM arguments in AWS ECS?


I am trying to set up a microservice in Amazon ECS. How can JVM arguments be configured and passed to the microservice?


Solution

  • We do this sort of thing by passing them as env variables on the task. When you edit your container in your task, scroll down to the Env Variables section:

    enter image description here

    You can then reference these as normal env variables on the command line when you launch your application.