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
14
votes
8 answers

Install ffmpeg on elastic beanstalk using ebextensions config

I'm attempting to install an up to date version of ffmpeg on an elastic beanstalk instance on amazon servers. I've created my config file and added these container_commands: container_commands: 01-ffmpeg: command: wget…
14
votes
2 answers

Amazon Elastic Beanstalk Worker Tier

I need to do some async job processing given a web request that I will poll periodically until it is complete. I have the whole stack up and running locally but I can't conceptually understand how to move this over to the EBS worker tier. I'm using…
Dillen
  • 225
  • 1
  • 2
  • 9
14
votes
1 answer

Client side JS (e.g. AngularJS) + Django REST Backend: Deploy onto single PaaS?

Basically I'm structuring my app similar to this GitHub project: https://github.com/zackargyle/angularjs-django-rest-framework-seed Is it possible to deploy both the backend and frontend onto a single PaaS such as Heroku/Elastic Beanstalk? Having a…
14
votes
8 answers

How to configure .ebextensions for nginx location directive?

I want to configure my staging environment in Elastic Beanstalk to always disallow all spiders. The nginx directive would look like this: location /robots.txt { return 200 "User-agent: *\nDisallow: /"; } I understand that I would want to create…
rgareth
  • 3,377
  • 5
  • 23
  • 35
14
votes
5 answers

AWS Elastic Beanstalk environment with multiple Load Balancers

I have the following situation: I have 1 Rails App that has 2 domains, each of these domains has multiple/dynamical subdomains. This app is in AWS using a load-balanced Elastic Beanstalk. What i need is that those 2 domains that points to my single…
14
votes
8 answers

How can you get the Elastic Beanstalk Application Version in your application?

We want to be able to retrieve the elastic beanstalk application version in our PHP code. I don't see that EB passes it to us in any server configuration files, which I find it strange. Does anyone else know how we might be able to get this?
Random5000
  • 1,562
  • 3
  • 16
  • 26
14
votes
4 answers

AWS No Environment found for EnvironmentName = 'name-env'

Why might I be seeing this error after I run git aws.push? remote: error: Unable to deploy application version: No Environment found for EnvironmentName = 'reco-api-env'. When I grep my flask app's directory for EnvironmentName, I see…
Rose Perrone
  • 61,572
  • 58
  • 208
  • 243
14
votes
2 answers

Elastic Beanstalk security patches

I currently use Ubuntu with unattended-upgrades on all my ec2-instances, to keep any nasty holes closed, but when running apps via Elastic beanstalk i can't see any option on how to handle patches to them. The only alternative is to manually log in…
glance
  • 141
  • 5
14
votes
5 answers

How do you call db:seed on AWS Elastic Beanstalk apps?

I know that you can run tasks as part of each deploy, but I only want to bootstrap the database once.
14
votes
6 answers

How to set an environment variable in Amazon Elastic Beanstalk (Python)

I have been working on a Django application lately, trying to get it to work with Amazon Elastic Beanstalk. In my .ebextensions/python.config file, I have set the following: option_settings: - namespace:…
14
votes
1 answer

m2e gives inscrutable "project read error"

I just started to use m2e to try to build the sample travellog elastic beanstalk project. On the console I'm getting "[ERROR] Project read error". This also appears in red on the "Dependency Hierarchy" tab. What does this mean and how do I find out…
user1420538
  • 481
  • 1
  • 3
  • 9
13
votes
1 answer

AWSElasticBeanstalkFullAccess (Provides full access...) equivalent?

I'm following a course on AWS Beanstalk that might be out of date. In IAM Management Console a user is added and one of the existing policies attached directly is AWSElasticBeanstalkFullAccess, which I cannot find while filtering policies…
uber
  • 4,163
  • 5
  • 26
  • 55
13
votes
3 answers

502 bad gateway Elastic Beanstalk Spring Boot

I deployed a Spring Boot app on AWS Elastic Beanstalk. I am facing a 502 Bad Gateway error. I cannot find anything useful from the logs /var/log/nginx/error.log 2019/02/10 02:12:54 [error] 3257#0: *1 connect() failed (111: Connection refused) while…
13
votes
5 answers

Angular Universal (SSR) Error: Failed to lookup view "index" in views directory

I want to deploy my angular universal app on aws. From my understanding, I can only deploy my app on elastic beanstalk because it needs a web server to run. (It means no S3 deployment). When I deploy my app, I have the following error: Error:…
Johan Rin
  • 1,900
  • 2
  • 20
  • 42
13
votes
2 answers

Commit .elasticbeanstalk/config.yml in Elastic Beanstalk

Is it a good approach to commit the .elasticbeanstalk/config.yml inside the git repo of a project which uses eb deploy? We want to deploy using our CI and so we can not use the interactive eb init. What we are thinking now is to define our dev, uat…
DenCowboy
  • 13,884
  • 38
  • 114
  • 210