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
7
votes
2 answers
How to erase/delete entire Elastic beanstalk environment
I ran eb init and set stuff up only to realize that RDS is essentially required if you use a relational database, but you'll only be prompted for it if you pass --database option to the EB create command (definite oversight there IMO).
Anyway, eb…

daino3
- 219
- 1
- 2
- 6
7
votes
3 answers
Is it possible to get metadata about the Elastic Beanstalk environment from the EC2 instance
I'd like to be able to extract information about the current elastic beanstalk environment from my EC2 instance, so that I can include this information in error emails sent from my servers.
For instance, knowing the current environment's name, and…

wjin
- 221
- 2
- 6
7
votes
1 answer
Job Control/background process (using ampersand) in .ebextensions config commands
Take for example the following .config file in .ebextensions/
container_commands:
000_run_queue_daemon:
command: "nohup php artisan queue:work --daemon &"
test: "ps -ef | grep artisan | grep -v grep > /dev/null || echo 1"
If the daemon…

Ben Swinburne
- 337
- 4
- 17
7
votes
1 answer
AWS Elastic Beanstalk File Upload Limit Issue
I'm having an issue on an AWS Elastic Beanstalk instance, whereby I can't seem to upload a PDF file that is 6MB in size. First, let me provide a bit more background:
The application running is an Expression Engine (EE)…

Cian Leonard
- 81
- 1
- 1
- 4
7
votes
2 answers
Elastic beanstalk access private git repo
I am trying to currently add an ssh key to my elastic beanstalk instances using .ebextensions commands.
The keys I have stored are in my application code and I try to copy them to the root .ssh folder so I can access them when doing a git+ssh clone…

user221676
- 71
- 1
- 3
7
votes
3 answers
How to get the output of container_commands after deployment?
My Elastic Beanstalk container uses container_commands to run a script to patch the database on every deployment.
I run the deployments with a home-brewed script that calls the UpdateEnvironment on the Elastic Beanstalk API.
The problem is, I have…

BenMorel
- 4,507
- 10
- 57
- 85
7
votes
3 answers
Amazon Elastic Beanstalk + Git Submodules
I'm using Amazon's Elastic Beanstalk to deploy my app via Git, and I've got submodules within my Git. Of course, when I look at the directories where the data for the submodules should be, nothing is there because the submodules have not been…

iLoch
- 201
- 1
- 3
6
votes
1 answer
Upgrading Elastic Beanstalk load balancer from Classic to Application load balancer?
I know how to follow the migration guide to upgrade a classic load balancer to an application load balancer.
However, when I try to clone my Beanstalk environment and perform that migration on that environment, then it still shows as a "Classic"…

Mathias Lykkegaard Lorenzen
- 351
- 2
- 4
- 11
6
votes
1 answer
How to change termination policy for auto-scaling-groups created by Elastic Beanstalk?
I'm using "T2 Unlimited" instances with my AWS Elastic Beanstalk configuration.
The default instance termination policy (for when scaling down) terminates the oldest instances first. This is bad because the oldest instances are the ones most likely…

Dan Sandberg
- 161
- 2
6
votes
2 answers
AWS elastic beanstalk: Errno 404 downloading file from S3 on deployment
I'm following the docs on fetching certificates from s3 when a new instance is deployed to elastic beanstalk. The instructions are fairly straightforward: create a config file under app-root/.ebextensions that reads:
Resources:
…

AlexanderF
- 211
- 1
- 9
6
votes
1 answer
mod_wsgi "Call to 'site.addsitedir()' failed" on AWS Elastic Beanstalk Python 3.6 platform
On AWS Elastic Beanstalk, on the "64bit Amazon Linux 2017.09 v2.6.0 running Python 3.6" platform, there seems to be a problem with the mod_wsgi configuration. I see this in /etc/httpd/conf.d/wsgi.conf:
WSGIDaemonProcess wsgi processes=1 threads=15…

David Eyk
- 667
- 1
- 7
- 17
6
votes
2 answers
Multi-container docker on AWS - Nginx use host machine /etc/hosts resolver
I have a multi-container docker environment on Amazon Elastic Beanstalk with the following Dockerrun.aws.json file:
{
"AWSEBDockerrunVersion": 2,
"containerDefinitions": [
{
"name": "web",
"memoryReservation": 256,…

the_critic
- 205
- 2
- 11
6
votes
3 answers
Can AWS Certificate Manager (ACM) Certificates be used on Elastic Load Balancer Instances in Regions other than us-east-1?
Amazon has recently announced their new AWS Certificate Manager (ACM) service. This looks promising, but it is currently only supported in the us-east-1 region.
I have existing resources in the us-west-2 region. Is it possible for me to create a…

MusikPolice
- 173
- 1
- 7
6
votes
2 answers
Switch regions on EB CLI
The only way I know how to switch regions using the EB CLI is eb init. This feels like a hack because in addition to selection my region, I have to re-answer a bunch of questions I've already answered.
Is there a way to just switch regions on the EB…

Jason Swett
- 1,468
- 5
- 23
- 37
6
votes
2 answers
Does elastic beanstalk run the postinstall from a package.json file?
I am using elastic beanstalk to deploy a node.js app. In my scripts section of package.json I have:
"scripts": {
"start": "node_modules/.bin/coffee server.coffee",
"test": "NODE_ENV=test node test/runner.js",
"coverage": "NODE_ENV=test…

Shamoon
- 911
- 4
- 14
- 22