gsdev
gsdev

Reputation: 259

Passing JVM Arguments to a Java application on AWS Elastic Beanstalk

I'm a relative newbie to AWS and Elastic Beanstalk.

I have a Java application which requires me to pass JVM arguments on the command line. I need to pass a jasypt password and heap size settings.

I've read the Amazon documentation, which describes how to accomplish setting environment variables which I can read in Java using System.getEnv(MY_ENV_VAR) but I need to pass JVM arguments not environment variables to the application.

Despite much searching, I cannot find a way to accomplish this task unless I use .ebextensions. Is this the preferred route to go?

Upvotes: 4

Views: 5110

Answers (1)

gsdev
gsdev

Reputation: 259

I discovered the following link in the Amazon Documentation

Creating a Procfile apparently is the way to go.

Upvotes: 3

Related Questions