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
27
votes
4 answers

No such file or directory - getcwd

I uploaded my Sinatra app to Beanstalk. When I go to my site my logs are returned No such file or directory - getcwd The app was working before. I believe the issue has to do with the fact that I added SASS to my app, but I'm not positive. In my…
thank_you
  • 11,001
  • 19
  • 101
  • 185
27
votes
6 answers

where and how to read results of ebextensions execution?

I added .ebextensions/start.config file to the root folder of my WAR bundle (as suggested by AWS), deployed it to Elastic Beanstalk, but nothing happened. Where in the EC2 instance can I see log of this file processing? Or maybe I can see this…
yegor256
  • 102,010
  • 123
  • 446
  • 597
26
votes
5 answers

AWS Elastic Beanstalk: Add custom logs to CloudWatch?

How to add custom logs to CloudWatch? Defaults logs are sent but how to add a custom one? I already added a file like this: (in .ebextensions) files: "/opt/elasticbeanstalk/tasks/bundlelogs.d/applogs.conf" : mode: "000755" owner: root …
26
votes
3 answers

Copy file from Elastic beanstalk to local machine

I have connected to Elastic Beanstalk using: eb ssh XXXXXX --profile=xx Now I want to copy a file to my local machine, how do I do that?
Positonic
  • 9,151
  • 14
  • 57
  • 84
26
votes
1 answer

Deploying some files in .gitignore to AWS Elastic Beanstalk

Knowing that eb deploy will deploy anything in your git repo, what is the best way to include files in that are included in .gitignore? I.e. config scripts with credentials etc. Thanks in advance!
pete
  • 1,023
  • 1
  • 10
  • 15
26
votes
1 answer

eb deploy does not update the code

I am trying to deploy an application version but eb deploy command fails with: ERROR: Update environment operation is complete, but with errors. For more information, see troubleshooting documentation. I checked the logs, made some changes to…
lunr
  • 5,159
  • 4
  • 31
  • 47
26
votes
3 answers

How to customize the docker run command on Elastic Beanstalk?

Here's the thing, I need to tell Docker to not containerize the container’s networking, because it needs to connect to a MongoDB that is inside a VPN (enterprise private DB). There is a Docker command that let's me do exactly that: --net=host.…
25
votes
10 answers

Rails application deployed on Elastic Beanstalk with Puma fails - 502 errors on every request

I just deployed a Rails app to Elastic Beanstalk, and every request is giving me a 502 error. Here's the contents of /var/logs/nginx/error.log 2015/05/20 16:24:25 [warn] 1535#0: conflicting server name "localhost" on 0.0.0.0:80, ignored 2015/05/20…
25
votes
14 answers

ExpressJS - Elastic Beanstalk 502 Bad Gateway

I am running a Express.js app on Amazon Elastic Beanstalk and my environment was successfully created, but when I go to my environment via the URL Amazon has created, I receive a 502 Bad Gateway nginx/1.6.2 error. While I have read other resources…
cphill
  • 5,596
  • 16
  • 89
  • 182
25
votes
5 answers

Where to add .ebextensions in a WAR?

Scenario: AWS Elastic Beanstalk Java application .ebextensions currently placed in src/main/resources/.ebextensions Commands are not being executed. Where is the .ebextensions supposed to go in a Java application?
flavian
  • 28,161
  • 11
  • 65
  • 105
25
votes
9 answers

Amazon Elastic Beanstalk not serving django static files

I am trying to put up a simple django app on elastic beanstalk. I thought I had the static parts of the app figured out as it works with heroku and on a server that was set up manually. In debugging I even checked in a pushed the static files in…
25
votes
2 answers

Running multiple environments on one AWS EC2 instance (Elastic Beanstalk)

I am very new to the Amazon AWS services. I was wondering if there is a way to run an instance of EC2 (say, Amazon Linux AMI) and then connect two environments to this instance. Particularly, I'd like to run a PHP and a Tomcat environment on a…
Abbas
  • 3,228
  • 1
  • 23
  • 27
24
votes
3 answers

How do you add chmod +x permission to an AWS Elastic Beanstalk platform hook?

Context I am using Elastic Beanstalk to deploy a very simple test application. I have several packages I want to install using apt. I have included a 01_installations.sh script with the installations in the .platform/hooks/prebuild directory. When I…
24
votes
2 answers

Flask unable to read Authorization header on ElasticBeanstalk

I have deployed a Flask app to AWS ElasticBeanstalk. The app is unable to read the 'Authorization' header in requests. Error log reports: KeyError: 'HTTP_AUTHORIZATION' Error traced to: @application.before_request def before_request(): …
24
votes
1 answer

AWS beanstalk docker exception: `shim reaped`

I am currently deploying in production a application (nodejs websocket server) on AWS beanstalk, using the docker environment. Periodically, the containers 'crash' (actually the main process in the container restart), and I can't figure out…
p9f
  • 601
  • 1
  • 5
  • 14