-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support read CREDENTIAL_ENV_VAR from VM option. #470
Comments
Can you elaborate on this? What problem does this solve? Why this choice of variable name? Thanks. |
I'm trying to integrate the Google reCAPTCHA in the AWS Elastic Beanstalk environment Tomcat & Java application, but Google required one system environment variable for the default credentials, something like this: System.getenv("GOOGLE_APPLICATION_CREDENTIALS"), but looks like AWS ElasticBeanstalkEnvironment only supports the VM options. that's simple and easy if google can read CREDENTIAL_ENV_VAR from VM options, otherwise, I have to write few extra codes to read the credentials from VM options.
instead of expect one:
|
so, is it that make sense to read the variable from VM options first and the system as the default? such as String credentialsPath = this.getProperty(CREDENTIAL_ENV_VAR, this.getEnv(CREDENTIAL_ENV_VAR)); |
cc @lsirac Will the upcoming 3pi credentials work better for this use case? |
Hi team,
Can we support read CREDENTIAL_ENV_VAR from VM options?
Code snippet
The text was updated successfully, but these errors were encountered: