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
21
votes
6 answers

how to restart node application automatically on aws elastic-beanstalk

I have googled this question for a while but can't find the answer. My question is while deploying the nodejs application on aws elastic-beanstalk servers, I want the nodejs application would be restart automatically if the application…
HolaMan
  • 381
  • 1
  • 4
  • 11
21
votes
1 answer

AWS Elastic Beanstalk error - ImportError: No module named flask.ext.sqlalchemy

I deployed my flask application into aws beanstalk and ran into an import error: ImportError: No module named flask.ext.sqlalchemy In my application.py file, I have this statement from flask.ext.sqlalchemy import SQLAlchemy and it runs fine on my…
21
votes
4 answers

Using EB to attach git repo to existing EB environment

I have an Elastic Beanstalk app and environment already setup. I've just downloaded the Dev Tools CLI/eb on Windows, and would like to use eb to push to said environment. If I use eb init, I have to create a new EB app and environment. How do I…
Dan Hoerst
  • 6,222
  • 2
  • 38
  • 51
20
votes
2 answers

Creating load balancer failed Reason: Default VPC not found

i m trying to deploy my app spring boot to aws elastic beanstalk , but i got these errors:
20
votes
1 answer

Env Variable in .ebextensions "files:" section

I defined an environment variable called MY_ENVIRONMENT_VARIABLE in AWS Elastic Beanstalk's Software Configuration tab. Now I would like to use this environment variable in the "files:" section of a .ebextensions config file. Resources: …
20
votes
4 answers

How to set multiline RSA private key environment variable for AWS Elastic Beans

I am deploying a Ruby on Rails application to AWS using Elastic Beanstalk and have to set a private key as an environment variable E.g -----BEGIN RSA PRIVATE…
20
votes
2 answers

Elastic Beanstalk Single Container Docker - use awslogs logging driver

I'm running a single Docker container on Elastic Beanstalk using its Single Container Docker Configuration, and trying to send the application stdout to CloudWatch using the awslogs logging driver. EB looks for a Dockerrun.aws.json file for the…
user1912899
20
votes
4 answers

ElasticBeanstalk Java, spring active profile

I am trying to start a spring boot .jar via AWS ElasticBeanstalk. Everything works fine, with the profile "default". Does anybody know how to set the active profile(spring.profiles.active) for a java ElasticBeanstalk app(not tomcat). I always get…
20
votes
2 answers

How to use AWS CLI with Elastic Beanstalk?

In the documentation it states that the EB CLI is replaced by AWS CLI but all of the documentation is still talking about EB CLI. I have created an application in Elastic Beanstalk console and now I'm ready to start developing. I have all the tools…
MikkoP
  • 4,864
  • 16
  • 58
  • 106
20
votes
5 answers

psycopg2 on elastic beanstalk - can't deploy app

I'm deploying my first app(Flask) to EB and am hitting a snag. Using PostgreSQL requires that I get psycopg2 installed but I can't figure out how to get it running. I saw in this post (Psycopg2 on Amazon Elastic Beanstalk) as well as this…
20
votes
3 answers

Download a application from AWS Elastic Beanstalk

How can I download a application from Elastic Beanstalk? I uploaded the application via the web interface, and made some changes live (It's a wordpress site), and now I want to download the whole site.
20
votes
1 answer

aws eb cli 3 sets up application for wrong account

I have multiple AWS accounts and I'm trying out the new command line interface for elastic beanstalk EB CLI 3. When I run the following command eb init I get prompted for the region (good) and then it asks me to "Select an application to use" where…
20
votes
2 answers

Where to put Elastic Beanstalk config commands that are only run once on spin-up?

I know I can put commands in my source code in .ebextensions/*.config using the commands array. These are executed on every deploy however. What about if I want to execute a configuration command only once when spinning up a new instance?
19
votes
2 answers

How to choose between AWS Elastic Beanstalk and App Runner services?

Similarities that I see are: They are PaaS offerings. They make AWS more similar to Heroku. They abstract away load balancing and auto scaling stuff. The only difference that I see is that App Runner uses docker but Elastic beanstalk may not use…
19
votes
3 answers

AWS Elastic Beanstalk Container Commands Failing

I've been having a hard time trying to get a successful deployment of my Django Web App to AWS' Elastic Beanstalk. I am able to deploy my app from the EB CLI on my local machine with no problem at all until I add a list of container_commands config…