AWS Elastic Beanstalk is a PaaS (Platform as a Service) service that allows you to quickly deploy and manage applications in the AWS cloud. Elastic Beanstalk handles the deployment details of capacity provisioning, load balancing, auto-scaling, and application health monitoring.
Questions tagged [elastic-beanstalk]
496 questions
6
votes
6 answers
How to know the reason why an environment turns RED health in Elastic Beanstalk?
I'm using AWS Elastic Beanstalk, and very often when deploying an environment, the health check turns RED, but I can't find an explanation why:
Clicking on Monitor doesn't help much:
Is there a way to have more specific information about why the…

BenMorel
- 4,507
- 10
- 57
- 85
6
votes
3 answers
Using Nginx to Block Connections that aren't addressed to my domain
I am running a django app on AWS elastic beanstalk and I'm getting spammed by bots trying to scan for vulnerabilities. It results in a flood of errors such as:
(Where xx.xxx.xx.xx is my ec2 instance's ip address.)
DisallowedHost at…

Del
- 163
- 1
- 4
6
votes
2 answers
Running same hook for deployment and configuration deployment
Using Elastic Beanstalk with Amazon Linux 2, I'm trying to have the same hook executed for a deployment (code deployment) and a configuration deployment, without having to duplicate my code in two different spots.
According to AWS docs eb will run…

Julien B.
- 231
- 2
- 10
5
votes
0 answers
Updating to latest Docker images in Elastic Beanstalk Multicontainer
I'm running a site on Elastic Beanstalk using a multi container set up. I'm wondering what is the preferred strategy to pull in the latest images.
On the CI server, after successful commits to master, I'm building the Docker images, send them to…

Juan Delgado
- 151
- 3
5
votes
1 answer
ElasticBeanstalk permissions needed to deploy new version via AWS CLI
I have an IAM policy setup that I thought provided the right permissions to deploy a new version to an Elastic Beanstalk application. I'm still getting InsufficientPrivilegesException, specifically:
aws elasticbeanstalk update-environment…

Sam
- 720
- 2
- 8
- 19
5
votes
1 answer
AWS Elastic Beanstalk Health Check on Alternate Port using Application Elastic Load Balancer
I'm trying to automate the configuration of my Elastic Beanstalk application using Saved Configs.
Does anyone have an example of how to get the application load balancer created from Elastic Beanstalk to use a different health check port?
If not, is…

J Messenger
- 59
- 6
5
votes
2 answers
Automate war deployment in VPC's private subnet on tomcat7
I have a VPC with public and private subnets.
Public subnet contains my Nating and Bastion instances
Private subnet contains my application servers (3 ec2 instances running tomcat7 with my project war file). These 3 instance are behined the…

PHP Avenger
- 259
- 2
- 8
5
votes
3 answers
Where should migrations be run on elasticbeanstalk deployment process?
I'm very curious as to how people run a command like db migrate on their eb apps. If you add it as an .ebextensions I fear that when you have multiple instances for one app, there could be conflicts that occur if multiple servers are trying to run…

ThomasReggi
- 621
- 2
- 10
- 25
5
votes
1 answer
Is there any difference between load balancer url and the elastic beanstalk url?
It seems that both the load balancer url and the elastic beanstalk point to the same ip address.
thomasreggi$ nslookup aws-load-balancer-url.us-east-1.elb.amazonaws.com
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
Name: …

ThomasReggi
- 621
- 2
- 10
- 25
5
votes
2 answers
504s on Elastic Beanstalk app deploy (user -> ELB -> Elastic Beanstalk mod_wsgi)
I have a Python Elastic Beanstalk load-balanced app. Here is the path a user request takes on its way into the Elastic Beanstalk app:
user -> Elastic Beanstalk ELB -> Elastic Beanstalk mod_wsgi
The problem:
The first ~2-4 requests from user after…

markplindsay
- 151
- 3
5
votes
2 answers
If you can't change the RDS endpoint of an AWS Beanstalk instance, how do you do a blue/green deployment?
From what I can tell, one can't change the Amazon RDS (RDS) endpoint of an existing Elastic Beanstalk (EB) instance?
If that is the case, than you can't have your code deployed to a stage server, stage DB, tested, then promoted to use the prod…

Ryan Fisher
- 233
- 1
- 9
5
votes
2 answers
Getting files from an s3 bucket using IAM role credentials
I am trying to retrieve some files from a private s3 bucket to a filesystem location elastic beanstalk ec2 instance, but with no success.
I've created a bucket named dev-config containing a file named local.properties.
I've created a IAM policy…

diffa
- 141
- 1
- 10
5
votes
1 answer
Elastic Beanstalk CLI - "a float is required"
I'm trying to use the AWS Elastic Beanstalk Command Line Interface v2.5.1 on OSX to deploy a node.js application.
The beanstalk application exists, with no environments.
From my application directory, I run eb init.
As prompted, I enter the Access…

kbanman
- 209
- 2
- 7
5
votes
2 answers
How to choose between Elastic Container Service (ECS) or Elastic Container Registry (ECR), Elastic Beanstalk, and Lambda?
Background:
I've worked with EC2 and RDS. Recently I received a query from a client in which he wants to develop both mobile and web applications using Amazon Web Services, and need advice on which service he should go with?
Elastic…

the_jerryyy
- 53
- 5
4
votes
2 answers
How to change Elastic Beanstalk launch configuration to launch template?
I want to replace the launch configuration with a launch template for my existing Elastic Beanstalk environment.
In the EC2 dashboard I created a launch template and selected it in the existing EB auto-scaling group. Now this works fine until I go…

Manuel
- 225
- 3
- 13