I created an ElasticBeanstalk env with an RDS attached to it. The platform of the instance using Corretto 8 running on 64bit Amazon Linux 2. It says here that the RDS settings are available as environment properties like RDS_HOSTNAME and here it states that in Java, we could retrieve them using System.getenv(). But when I try it on the EC2
Tag: amazon-elastic-beanstalk
AWS Elastic Beanstalk Application Logging with Logback
EDIT: Added Image (The problem looks like log files are not written) I am running an spring mvc (NOT springboot) WAR file on AWS Elastic Beanstalk on a ‘Tomcat 8.5 with Corretto 11 running on 64bit Amazon Linux 2/4.1.3’ environment. Everything is working as expected EXCEPT application logs that I write with slf4j/logback. The following is my logback.xml configuration file
How do I get the Client Hostname and/or client IP address from within a Spring Boot application in Elastic Beanstalk?
I have a Spring Boot application deployed in AWS Elastic Beanstalk. For one of my APIs, I am need to check the client hostname address. I am using (where request is a HttpServletRequest). I know that the HTTP spec and the Java servlet spec both say that both of these values may be absent. However, I am seeing that each
Application source bundle doesn’t work when uploaded to AWS Elastic Beanstalk
I’m trying to upload a Java/Spring Boot app that runs in a Linux 2 Coretto 11 environment. Everything worked fine when I uploaded the standalone JAR files, but I started creating an application bundle instead so I could configure the environment, specifically client_max_body_size. It looks like the app is starting but then some error happens with not much info (logs).
Strange date error between Development and Production environment
I have a strange date error that I can’t solve for days and ask for your help. I have developed in Java/Spring/Vaadin/Hibernate an app that creates a sport training every day by a user. The problem is that the training date is not displayed correctly in browser. For example, I create now a new training: On localhost shows right but
What’s the recommended way to set networkaddress.cache.ttl in Elastic Beanstalk?
I need to set Java’s DNS cache TTL (networkaddress.cache.ttl) for an Amazon Elastic Beanstalk app running in Tomcat 8. Because EB can start and stop server instances at any time, I can’t simply edit a Tomcat config file and the server and expect the change to persist. I tried setting the networkaddress.cache.ttl and sun.net.inetaddr.ttl environment variables, but those had no