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
24
votes
1 answer

django-rq and rqscheduler deployment on AWS Elastic Beanstalk

I have a Django app that runs on the AWS EB environment. With recent updates, I had to integrate django-rq and rqscheduler for some queue-based background tasks. This all works fine on localhost with commands rqworker and rqscheduler. But I am…
24
votes
1 answer

How can I change an elasticbeanstalk environment vpc?

I can't seem to find any documentation on this. How do I go about changing the VPC for an elasticbeanstalk environment? I have tried changing the security group from the current group to a group in the new VPC, but amazon returns the following…
melchoir55
  • 6,842
  • 7
  • 60
  • 106
24
votes
5 answers

Amazon Elastic Beanstalk npm cant find package.json

I'm very new with amazon web services, and I am trying to set up a node.js app on their elastic beanstalk. I set up the instance and uploaded/deployed the site, but while the health is "Ok" the node.js logs show this repeated about 30 times: npm…
24
votes
1 answer

AWS Elastic Beanstalk Vs EC2 Container Service (ECS) - Docker

Have been running Docker with Elastic Beanstalk to deploy a relatively simple app, and it has been working great. Now with ECS on the horizon, I am interested to know what the differences are between the two services, and why one might use one over…
Sean McClory
  • 4,195
  • 3
  • 32
  • 35
24
votes
7 answers

Refresh net.core.somaxcomm (or any sysctl property) for docker containers

I am trying to change net.core.somaxconn for docker container to be able to have larger queue of requests for my web application. On OS, outside docker, I first modify the property successfully: $ cat /proc/sys/net/core/somaxconn 128 $ sudo sysctl…
Tuukka Mustonen
  • 4,722
  • 9
  • 49
  • 79
24
votes
6 answers

Script timed out before returning headers: wsgi.py on elastic beanstalk

I'm trying to deploy a Django application to Elastic Beanstalk. When I visit the page it never loads. The logs say: Script timed out before returning headers: wsgi.py I can ssh into the server and run manage.py runserver and then curl…
Meistro
  • 3,664
  • 2
  • 28
  • 33
24
votes
4 answers

How does AWS Beanstalk use NPM when deploying a Nodejs App?

I'm curious about the overall workflow of an AWS Beanstalk deployment. I'm assuming it runs npm at some point to get the packages installed on the server(s). But I was just wondering if AWS Beanstalk uses the latest command of 'npm install…
Adron
  • 1,698
  • 3
  • 19
  • 40
24
votes
5 answers

Invalid requirements.txt on deploying django app to aws beanstalk

I have been deploying my app without any issues to the beanstalk environment until my latest commit. Now I get this Time Type Details 2013-09-01 10:19:12 UTC+0800 ERROR Failed to deploy application. 2013-09-01 10:19:11 UTC+0800 ERROR…
24
votes
1 answer

Can Amazon EC2 reserved instances be used with auto-scaling in AWS Elastic Beanstalk?

As far as I understand AWS Elastic Beanstalk will allow you to set auto-scaling, which means that you can use a micro-instance overnight, say, and auto-scale up during the day. Can you still take advantage of reserved EC2 instance pricing if you do…
Chris Wheadon
  • 840
  • 6
  • 17
23
votes
3 answers

Deploy a GitHub branch automatically to AWS Elastic Beanstalk

Say I have a branch stable on GitHub that I want to automatically deploy to my AWS EB instances when there is a commit. I have looked at CodePipeline, which is not available in the region I am hosting my instances. I have also looked at CodeDeploy…
23
votes
5 answers

Elastic Beanstalk app won't connect to RDS MySQL instance

I have a CodeIgniter PHP app setup on an Elastic Beanstalk instance. I'm trying to connect it to a RDS MySQL instance I setup but loading the Elastic Beanstalk site URL always results in the page timing out the connection. I've narrowed down the…
Tim Jahn
  • 1,154
  • 7
  • 16
  • 29
23
votes
2 answers

Amazon Elastic Beanstalk vs EC2 instance with docker containers

If I understand correctly, Elastic Beanstalk creates an EC2 instance for each application you deploy. However, an application typically doesn't run at 100% CPU, yet amazon charges you per instance used. So if I deployed 5 apps with Dockerfiles, AWS…
Nick
  • 11,483
  • 8
  • 41
  • 44
23
votes
6 answers

Nginx config file overwritten during Elastic Beanstalk deployment?

I need to add p3p headers to the static resource location on a standard Nodejs & Nginx Elastic Beanstalk. I've created an ebextension script as explained on this question. The script uses set to add a add_header directive under the alias line, which…
Antoine
  • 5,055
  • 11
  • 54
  • 82
23
votes
2 answers

How to set autoscaling group health check type with elasticbeanstalk

I have set the 'Application Healthcheck URL' (aws:elasticbeanstalk:application) for my elasticbeanstalk application, and during the night the two servers started failing this check. It seems that the autoscaling group set up by elasticbeanstalk has…
user1207727
  • 1,543
  • 1
  • 15
  • 18
23
votes
3 answers

Why can't the pg gem be installed in AWS Elastic Beanstalk?

I am deploying a simple application to AWS Elastic Beanstalk. However, the moment I put gem 'pg' in the Gemfile and push these to Elastic Beanstalk. I get the following errors in my…