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
36
votes
3 answers

AWS Elastic Beanstalk 504 Gateway Timeout

I have a Node server running on AWS Elastic Beanstalk. One of my endpoints accepts a huge payload and the function itself is pretty slow and lengthy, and can take upwards of 10+ minutes. Due to business requirements it must remain as a single HTTP…
Joshua Ohana
  • 5,613
  • 12
  • 56
  • 112
36
votes
9 answers

AWS Elastic Beanstalk logging with python (django)

How do you manage your application logs in AWS elastic beanstalk? Which file you write you application logs to? I'm using the following Logging configuration in my development environment but this doesn't work when I deploy in AWS. DEBUG_LOG_DIR =…
35
votes
3 answers

Elastic Beanstalk Change ELB Type

Does anyone know if it's possible to change an existing AWS Elastic Beanstalk environment to an Application Load Balancer (instead of a classic one). As far as I know only Application ELB's can be protected with AWS WAF and DDOS "Shield" so any…
David
  • 7,652
  • 21
  • 60
  • 98
35
votes
4 answers

Psycopg2 on Amazon Elastic Beanstalk

I'm trying upload my project (in python) that uses Psycopg2 for Amazon Elastic Beanstalk. I'm doing this with a zip file containing my project and an requirements.txt file. But I'm receiving this error: Downloading/unpacking psycopg2>=2.4.6 (from…
Eduardo
  • 1,698
  • 4
  • 29
  • 48
34
votes
12 answers

Amazon Elastic Beanstalk - Change Timezone

I´m running an EC2 instance through AWS Elastic Beanstalk. Unfortunately it has the incorrect timezone - it´s 2 hours earlier than it should be, because timezone is set to UTC. What I need is GMT+1. Is there a way to set up the .ebextensions…
tomraithel
  • 958
  • 2
  • 13
  • 22
34
votes
2 answers

Custom URL in AWS Elastic Beanstalk

AWS Elastic Beanstalk suggests using a URL in the following format: https://{appname}.elasticbeanstalk.com/ But I need to change it to my own URL, something like https://tarta.ai How to do it?
33
votes
1 answer

Differences between AWS Fargate and multi-container Elastic Beanstalk?

I understand that ECS has EC2 and Fargate launch types that differ in the control they offer over the underlying environment configuration. Before Fargate, ECS was used to provide detailed control over the container environment, while Elastic…
33
votes
2 answers

recommended way to install mongodb on elastic beanstalk

I have already taken a look at How to install mongodb in Elastic Beanstalk? dated 2014, which no longer works. as well as https://docs.mongodb.org/ecosystem/platforms/amazon-ec2/#manually-deploy-mongodb-on-ec2 I have set up a new elastic beanstalk…
amyloula
  • 1,556
  • 2
  • 17
  • 26
32
votes
6 answers

Celery tasks received but not executing

I have Celery tasks that are received but will not execute. I am using Python 2.7 and Celery 4.0.2. My message broker is Amazon SQS. This the output of celery worker: $ celery worker -A myapp.celeryapp --loglevel=INFO [tasks] .…
31
votes
6 answers

AWS Elastic Beanstalk and Secret Manager

Does anyone know is it possible to pass a secret value as an environment variable in elastic beanstalk? The alternative obviously is to use the sdk in our codebase but I want to explore the environment variable approach first Cheers Damien
Damien
  • 4,081
  • 12
  • 75
  • 126
31
votes
10 answers

Unable to install AWS Elastic Beanstalk CLI (Win10, Python 3.6, Pip 9.0.1)

I am trying to install awsebcli on my machine and I am unable to run the command eb --version It shows this error: 'eb' is not recognized as an internal or external command, operable program or batch file. This is my Python version: C:\>python…
Amir
  • 2,249
  • 7
  • 34
  • 48
30
votes
3 answers

Unknown or duplicate parameter: NodeCommand

I'm trying to deploy a Node.js API with Elastic beanstalk. I want to set the node command to start the app. This is my nodecommand.config: option_settings: aws:elasticbeanstalk:container:nodejs: NodeCommand: "npm start" This is my file…
30
votes
10 answers

on building docker image level=error msg="Can't close tar writer: io: read/write on closed pipe"

time="2017-10-27T07:39:20Z" level=error msg="Can't add file /var/app/current/app/content_classifier/forest.pickle to tar: io: read/write on closed pipe" time="2017-10-27T07:39:20Z" level=error msg="Can't close tar writer: io: read/write on closed…
Aniket patel
  • 551
  • 1
  • 5
  • 17
30
votes
2 answers

How to translate docker-compose.yml to Dockerrun.aws.json for Django

I am following the instructions at https://docs.docker.com/compose/django/ to get a basic dockerized django app going. I am able to run it locally without a problem but I am having trouble to deploy it to AWS using Elastic Beanstalk. After reading…
30
votes
3 answers

AWS Elastic Beanstalk - How To Upgrade Existing Environment from Ruby 2.1 to Ruby 2.2

AWS Elastic Beanstalk - Cannot Clone With Latest Platform or eb upgrade from Ruby 2.1 to Ruby 2.2 I've been smashing my head on this one. Back in May, AWS announced that their Ruby Elastic Environments now offer Ruby-2.2 (e.g.…
Dan
  • 1,955
  • 17
  • 21