简体   繁体   中英

AWS JAVA BeanStalk - What environmet is running the app

There's a way to know in my app if it's running at a specific beanstalk envinroment?

I am using Java with SPRING MVC and have access to AWS SDK.

Thanks.

I found a way to resolve.

In AWS Management Console is possible to set environment parameters.

So I set this parameters on the different envinroments and simple check in my java app:

System.getProperty("param1")

I don't know if that's a better way, but for me solves now.

Thanks.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM