elastic-beanstalk

Install ffmpeg on elastic beanstalk using ebextensions config

空扰寡人 提交于 2019-11-29 23:19:49
I'm attempting to install an up to date version of ffmpeg on an elastic beanstalk instance on amazon servers. I've created my config file and added these container_commands: container_commands: 01-ffmpeg: command: wget -O/usr/local/bin/ffmpeg http://ffmpeg.gusari.org/static/64bit/ffmpeg.static.64bit.2014-03-05.tar.gz leader_only: false 02-ffmpeg: command: tar -xzf /usr/local/bin/ffmpeg leader_only: false 03-ffmpeg: command: ln -s /usr/local/bin/ffmpeg /usr/bin/ffmpeg leader_only: false Command 01 and 03 seems to work perfectly but 02 doesn't seem to work so ffmpeg doesn't unzip. Any ideas what

How to add multiple keys for elastic beanstalk instance?

此生再无相见时 提交于 2019-11-29 22:48:40
There is a very good question on [How to] SSH to Elastic [an] Beanstalk instance , but one thing I noticed is that, through this method, it is only possible to add one SSH key. How can I add multiple SSH keys to an instance? Is there a way to automatically add multiple keys to new instances? No, Elastic Beanstalk only supports a single key pair. You can manually add SSH keys to the authorized_keys file, but these will not be known to the Elastic Beanstalk tools. To create a file named .ebextensions/authorized_keys.config is another way to do it. files: /home/ec2-user/.ssh/authorized_keys: mode

AWS: None of the Instances are sending data

北慕城南 提交于 2019-11-29 22:29:18
I'm trying to set up an Elastic Beanstalk application with Amazon Web Services however I'm receiving a load of errors with the message None of the instances are sending data . I've tried deleting the Elastic Beanstalk Application and the EC2 instance several times with the sample application and trying again but I get the same error. I also tried uploading a flask application with AWS Elastic Beanstalk command line tools but then I received the error below: Environment health has transitioned from Pending to Severe. 100.0 % of the requests to the ELB are failing with HTTP 5xx. Insufficient

Can Amazon EC2 reserved instances be used with auto-scaling in AWS Elastic Beanstalk?

馋奶兔 提交于 2019-11-29 21:30:18
As far as I understand AWS Elastic Beanstalk will allow you to set auto-scaling, which means that you can use a micro-instance overnight, say, and auto-scale up during the day. Can you still take advantage of reserved EC2 instance pricing if you do this? Steffen Opel Update (Sept 2013) AWS has just announced support to Modify EC2 Reserved Instance Reservations , which removes two of the former restrictions (I've updated my initial answer accordingly): Today we are making the Reserved Instance model even more flexible by giving you the power to modify your Reserved Instances (RI's) when your

elastic beanstalk weird nginx configuration

拜拜、爱过 提交于 2019-11-29 21:05:16
I am trying to follow the configuration of nginx on elastic beanstalk and some things do not add up. The instance is opening port 80 in the security groups, so I assume all incoming traffic is coming through that port The nginx configuration in cat /etc/nginx/conf.d/00_elastic_beanstalk_proxy.conf states: server { listen 8080; location / { proxy_pass http://nodejs; proxy_set_header Connection ""; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } gzip on; } Port 8080? Where did that come

Can you run a rails console or rake command in the elastic beanstalk environment?

主宰稳场 提交于 2019-11-29 20:45:58
I have set up a RoR environement on AWS' elastic beanstalk. I am able to ssh into my EC2 instance. My home directory is / home/ec2-user , which is effectively empty. If I move up a directory, there is also a /home/webapp directory that i do not have access to. Is there a way to run a rake command or rails console on my elastic beanstalk instance? If I type rails console I get Usage: rails new APP_PATH [options] If I type RAILS_ENV=production bundle exec rails console , I get " Could not locate Gemfile " For rails, jump to /var/app/current then as @juanpastas said, run RAILS_ENV=production

How to change the AWS account using the Elastic Beanstalk CLI

依然范特西╮ 提交于 2019-11-29 20:44:58
I deployed an app using elastic beanstalk to my personal AWS account..Now I want to change the AWS credentials so the eb cli knows to deploy to a different account. But it does not ask me for the AWS keys when I type "eb init". Where do I specify this? bpn I had to add a new profile to this file ~/.aws/config . Example of the file with 2 profiles: [profile eb-cli] aws_access_key_id = XXXXXXXXXXXXX aws_secret_access_key = XXXXXXXXXXXX [profile eb-cli2] aws_access_key_id = XXXXXXXXXX aws_secret_access_key = XXXXXXXXXXXX Also make sure to update the profile value in your application

How to customize the docker run command on Elastic Beanstalk?

╄→гoц情女王★ 提交于 2019-11-29 20:38:07
Here's the thing, I need to tell Docker to not containerize the container’s networking, because it needs to connect to a MongoDB that is inside a VPN (enterprise private DB). There is a Docker command that let's me do exactly that: --net=host . Reference here . So, for example, when running the container on my local machine, I will do something like: docker run --rm -it --net=host [image-name]:[version] bash -il And that command will do the trick. Thanks to that, I can connect to the "private" MongoDB. So, my question is: Is there a way customize the docker run command of a Single Docker

Elastic IP on application deployed using Elastic Beanstalk

寵の児 提交于 2019-11-29 19:58:02
I'm a bit confused about the use of the Elastic IP service offered by Amazazon Web Services. I guess the main idea is that I can switch to a new version of the web application with no downtime following this simple procedure: Deploy the new version on a new EC2 instance Configure the new version properly and test it using a staging DB Once properly tested, make this new version use the live DB Associate the Elastic IP to this instance Terminate all the useless services (staging DB and old EC2 instance) Is this the common way to deploy a new version of a web application? Now, what if the

AWS OpsWorks vs AWS Beanstalk vs AWS CloudFormation?

余生颓废 提交于 2019-11-29 19:04:30
I would like to know what are the advantages and disadvantages of using AWS OpsWorks vs AWS Beanstalk and AWS CloudFormation? I am interested in a system that can be auto scaled to handle any high number of simultaneous web requests (From 1000 requests per minute to 10 million rpm.), including a database layer that can be auto scalable as well. Instead of having a separate instance for each app, Ideally I would like to share some hardware resources efficiently. In the past I have used mostly an EC2 instance + RDS + Cloudfront + S3 The stack system will host some high traffic ruby on rails apps