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
15
votes
5 answers

AWS Elastic Beanstalk - ERROR: No Application Version named 'v0_9_2-76-gf5a4' found

I'm trying to deploy my code to AWS Beanstalk and get this error. I researched that it could be that the number of versions is more than 500, so I deleted a lot of versions. But, I still get this error. eb deploy ERROR: No Application Version…
user2974739
  • 619
  • 1
  • 7
  • 20
15
votes
2 answers

LaunchWaitCondition failed. The expected number of EC2 instances were not initialized within the given time

The error message is: Stack named 'awseb-e-r3uhxvhyz7-stack' aborted operation. Current state: 'CREATE_FAILED' Reason: The following resource(s) failed to create: [AWSEBInstanceLaunchWaitCondition]. I am trying to use Multi-Container Docker in…
djkpA
  • 1,224
  • 2
  • 27
  • 57
15
votes
3 answers

How can I automatcially confirm subscription to SNS Notifications

I regularly spin up and spin down elastic beanstalk environments which have my team's email set as the notification address. Is there a way I can automatically confirm subscription to all of the SNS topics that are created instead of having to…
thefroatgt
  • 896
  • 2
  • 12
  • 19
15
votes
2 answers

How do I configure the name of my WSGI application on AWS Elastic Beanstalk?

My Python web application is called app # example.py import flask app = flask.Flask(__name__.split('.')[0]) and when I attempt to launch it on AWS-EB using # run.py (set correctly with WSGIPath) from example import app if __name__ == "__main__": …
orome
  • 45,163
  • 57
  • 202
  • 418
15
votes
4 answers

I can't find my Web app when I SSH to my AWS Elastic Beanstalk instance

I've set up SSH to my AWS Elastic Beanstalk instance using eb ssh --setup and can successfully SSH to my environment. But I can't see my Web application. When I am connected I find myself in an empty directory (ec2-user) and when I cd /home I…
orome
  • 45,163
  • 57
  • 202
  • 418
15
votes
1 answer

AWS Elastic Beanstalk, Dockerrun.aws.json and multiple ports on docker run

I wish to run a docker in a EC2 instance with AWS API, and I have a Dockerrun.aws.json like this: { "AWSEBDockerrunVersion": "1", "Authentication": { "Bucket": "", "Key": ".dockercfg" }, "Image": { "Name":…
15
votes
2 answers

Setting NODE_ENV variable in elasticbeanstalk

I've created a file called .elasticbeanstalk/environment.config with the following in it: option_settings: - option_name: NODE_ENV value: development I'm also passing the process.env.NODE_ENV to the view so I can check the value app.get('/',…
15
votes
4 answers

Accessing Elastic Beanstalk environment properties in Docker

So I've been looking around for an example of how I can specify environment variables for my Docker container from the AWS EB web interface. Typically in EB you can add environment properties which are available at runtime. I was using these for my…
iLoch
  • 741
  • 3
  • 11
  • 32
15
votes
9 answers

"You cannot access this page directly" - Hybrid Auth

I'm hosting my PHP Yii application on AWS Elastic Beanstalk and hence using the database to store sessions. I've successfully implemented facebook login using Hybridauth on a shared hosting environment. When I host on Elastic Beanstalk facebook…
goose
  • 2,502
  • 6
  • 42
  • 69
15
votes
2 answers

django-admin.py and python path on EC2 Amazon Beanstalk

I deployed my django app on Elastic Benastalk, but my commands are failing and I think that the problem is that django-admin.py is not in the $PYTHONPATH, I would like to add my app to the python path, but I don't know what is the exact path on the…
15
votes
4 answers

How to automatically restart delayed_job when deploying a rails project on Amazon Elastic Beanstalk?

I'm hosting a rails project on Amazon Elastic Beanstalk and I try to configure a container command to automatically restart my delayed_job worker on the server after each deployment. I tried with this one : container_commands: restartdelayedjob: …
15
votes
6 answers

Deploy multiple applications to a single EC2 instance using AWS Elastic Beanstalk

I am have deployed a .Net website to AWS Elastic Beanstalk. I want to now deploy another .Net web project (a web service) to the same EC2 instance that was created by AWS Elastic Beanstalk, but the selection to "use and existing environment" in the…
Sean Kearon
  • 10,987
  • 13
  • 77
  • 93
14
votes
1 answer

customize Elastic Beanstalk instances

We are deploying a java web application in Elastic Beanstalk. The Beanstalk by default provides Redhat instances with Tomcat7 & openjdk. But i want to customize the instances so that i can use Sunjdk. Followed the steps as mentioned here, I…
Sangram Anand
  • 10,526
  • 23
  • 70
  • 103
14
votes
3 answers

setting a multi-line value in terraform variables

I'm trying to deploy a beanstalk and use this as part of the aws_elastic_beanstalk_environment terraform resource: setting { namespace = "aws:elb:policies:PublicKey" name = "PublicKey" value = var.PUBLICKEY The value of the…
Lagot
  • 639
  • 1
  • 9
  • 26
14
votes
3 answers

Command 01_migrate failed on Amazon Linux 2 AMI

I have a Django project which is deployed to Elastic Beanstalk Amazon Linux 2 AMI. I installed PyMySQL for connecting to the db and i added these lines to settings.py such as below; import pymysql pymysql.version_info = (1, 4, 6, "final",…