Questions tagged [amazon-elastic-beanstalk]

AWS Elastic Beanstalk is a PaaS (Platform as a Service) service from Amazon Web Services that allows users to create applications and push them to a definable set of AWS services.

AWS Elastic Beanstalk is a PaaS (Platform as a Service) service from Amazon Web Services that allows users to create applications and push them to a definable set of AWS services, including Amazon EC2, Amazon S3, Amazon Simple Notification Service (SNS), Amazon CloudWatch, auto scaling, and elastic load balancers.

AWS Elastic Beanstalk Documentation

9253 questions
3
votes
2 answers

502 Bad Gateway when accessing Dockerized ASP.NET Core Web API on Elastic Beanstalk

My docker-compose.override.yml is as follows: version: '3.4' services: helen.api: environment: - ASPNETCORE_ENVIRONMENT=Development - ASPNETCORE_URLS=http://+:5000 ports: - "5001:443" - "5000:80" volumes: …
Ali Bdeir
  • 4,151
  • 10
  • 57
  • 117
3
votes
1 answer

https listener creation fails in AWS Elastic Beanstalk

I have developed and deployed a python application to AWS Elastic Beanstalk that works fine. When I modify the application bundle with the addition of the .ebextensions/https-reencrypt-alb.config file the deployment of the Application fails with an…
3
votes
1 answer

Beanstalk puts the nginx conf file into the wrong directory

I followed the documentation so to replace the default nginx.conf file. So the tree looks like this: app_root/ ├─ .platform/ │ ├─ nginx/ │ │ ├─ nginx.conf │ │ ├─ conf.d/ │ │ │ ├─ my_custom_conf.conf Although everything seems correct, after…
Federico Loro
  • 65
  • 1
  • 6
3
votes
1 answer

Getting custom elastic beanstalk logs into cloudwatch group

Having issues and been unable to create a custom cloudwatch log group from .ebextentions/logs.config Here are different files I have tried. 1 --- files: /opt/elasticbeanstalk/tasks/bundlelogs.d/celery_logs.conf: content: |- …
3
votes
2 answers

AWS Beanstalk + Kotlin + Spring boot: NoSuchMethodException main()

I've a Spring Boot app written in Kotlin that I have deployed to AWS Beanstalk that is throwing the following exception: Exception in thread "main" java.lang.NoSuchMethodException: com.prototype.demo.DemoApplication.main([Ljava.lang.String;) at…
Marco
  • 321
  • 3
  • 10
3
votes
1 answer

Docker deployment to elasticbeanstalk is slow

my docker file is as below FROM node:16.16.0 as ui WORKDIR /app COPY ./ui/package.json . RUN npm install COPY ./ui/ . WORKDIR /admin COPY ./admin/package.json . RUN npm install COPY ./admin/ . FROM ui as ui1 WORKDIR /app RUN npm run build WORKDIR…
3
votes
0 answers

Can't access Elastic Beanstalk Configuration: A problem occurred while loading your page: Configuration validation exception: Invalid option value

My application is running on Elastic beanstalk AL2 with docker. It is still up and running, this issue is not user facing and only internal to AWS. I upgraded to AL2 about 7 months ago and there were no problems. Recently I logged into to Elastic…
3
votes
0 answers

NextJs - ServerSide Render CPU spike with certain API request

We noticed an interesting issue regarding our serverside rendering of our NextJs application. The issue occurred when we decided to add fetching of our translation key values (which are fetched via API) on our serverside calls. We made this decision…
3
votes
1 answer

Django on AWS elastic beanstalk: failed to generate rsyslog file with error Procfile could not be parsed

I am trying to add a custom Procfile to my Django elastic beanstalk environment but I am receiving the following error during the deploy: 022/06/02 08:14:22.827519 [INFO] Generating rsyslog config from Procfile 2022/06/02 08:14:22.827557 [ERROR]…
Salvatore Avanzo
  • 2,656
  • 1
  • 21
  • 30
3
votes
0 answers

503 : Service Unavailable : 'upstream connect error or disconnect/reset before headers. reset reason: connection termination' on AWS

I have 4 node microservices, of which 3 are deployed in AWS AppRunner and a main orchestrator service which is deployed in AWS Elastic Beanstalk (HTTPS Configured for all the services). The flow normally works like the orchestrating node service…
3
votes
1 answer

Is there no AWS equivalent to GCP cloud run (cloud run costs blew AWS away in this example)?

I just tested Elastic Beanstalk which seemed like the closest thing (just deploy docker) but then when I set it to scale from 0 to 5 instances, it correctly scales to 0 and then never scales back up from 0. ie. It properly shuts down pre-production…
3
votes
1 answer

How to find out the reason for a failing elastic beanstalk deployment?

After eb deploy the environment gets stuck in Health: 'Severe'. It show the following warning in recent events: Environment health has transitioned from Info to Severe. ELB processes are not healthy on all instances. Application update in progress…
vrepsys
  • 2,143
  • 4
  • 25
  • 37
3
votes
1 answer

Sharp JS Dependency breaks Express Server on Elastic Beanstalk

I feel like this is useless as my conundrum has been discussed in several different threads, but nothing has worked. I have an ExpressJS/node server deployed to AWS Elastic Beanstalk. When I first tried to deploy several weeks ago, I couldn't get it…
3
votes
2 answers

How to deploy nuxt frontend with express backend on AWS?

I have a Nuxt v2 SSR application as the frontend running on port 3000 I have an express API as the backend running on port 8000 I have a python script that loads data from external APIs and needs to run continuously Currently all of them are…
3
votes
0 answers

How to securely manage environment variables for AWS Elastic Beanstalk using Terraform?

We are managing an elastic beanstalk application via terraform, and are unsure of the best way to handle sensitive environment variables for our application. Currently, we are storing these sensitive values in an AWS Secrets Manager secret. During…