recently i am having a timeout issue while using my application deployed to Elastic Beanstalk and EC2. Initially, the error was 504 after 60 seconds, and upon reading some forums/discussions, i changed the EC2 load balancer idle time to 600 seconds. When i try again, it became error 502 after 60 seconds (another timeout). Thus, i believe this timeout is from the application itself, and i tried to include ebextension file into the project directory.
I am packaging the project as a war and upload it to the aws tomcat server. My war file structure is as follows:
.ebextensions
app
META-INF
WEB-INF
Am i doing anything wrong in term of the .ebextensions location? It seems like it is not reading the config file, or perhaps the config file could not solve my timeout issue?
The content of the config file within .ebextensions are:
option_settings:
- namespace: aws:elasticbeanstalk:command
option_name: Timeout
value: 1800
Hope anyone of you can help. Thank you.