FAQ Database Discussion Community


Accessing a s3 bucket from Node

node.js,amazon-s3,elastic-beanstalk,passport.js
I have a basic node application where a user logs in and is able to view links to files stored in a directory within the app. The file structure looks something like this. ├── app ├── public ├── node_modules ├── secure (files stored here) ├── .ebextensions ├── .elasticbeanstalk ├── package.json...

Elastic Beanstalk ebextension config not running for new instance in autoscaling group

amazon-web-services,elastic-beanstalk
hoping for some idea how to fix this! I've got an .NET web application running in Elastic Beanstalk, which needed a couple of things done to it through ebextensions. It works consistently after an instance is created, but on instance creation, there seems to be a problem. In the log...

Elastic beanstalk with Docker Volumes pointing to files

amazon-web-services,docker,elastic-beanstalk
I have a Tomcat docker container and want to deploy my webapp on it with Elasticbeanstalk. With plain docker I don't add my war file to the container but reference to it via the -v flag like: docker run --rm -v data/myfile.war:/usr/local/tomcat/webapps/myFile.war This allows me to reference directly to my...

cannot deploy - ERROR: You cannot have more than 500 Application Versions

elastic-beanstalk
I get the following error when deploying to EB: ERROR: You cannot have more than 500 Application Versions. Either remove some Application Versions or request a limit increase. I went manually and deleted some versions. I don't want deploys to fail because of this limit. Is there a way in...

AWS Elastic Beanstalk Docker environment variables

amazon-web-services,docker,elastic-beanstalk
How to pass environment variables to Docker containers running in AWS Elastic Beanstalk multiple docker container configuration(different for different containers)?

AWS Elastic Beanstalk and Whenever Gem

ruby-on-rails,ruby-on-rails-4,amazon-web-services,elastic-beanstalk,whenever
I have a Rails 4.2.1 app, using Ruby 2.2. I'm trying to use the Whenever Gem to update cron tasks on my Elastic Beanstalk from my code base. I've followed a few resources from AWS where you can add files to the .ebextensions folder and use EB's post deployment hook...

aws beanstalk config options for document root

amazon-web-services,yaml,elastic-beanstalk,amazon-elastic-beanstalk
I'm trying to predefine instance settings via config file but it just won't take it... if I create the environment it never reflects the settings. I think I might just miss something obvious but can't find a solution. I probably terminated and created the env now 30 times with different...

AWS EB deployment errors - No module named cfnbootstrap

python,python-2.7,amazon-web-services,elastic-beanstalk
I am trying to deploy my application on AWS Elastic Beanstalk, it states some errors when the process is completed and reading the logs this is what I've found: File "/opt/aws/bin/cfn-get-metadata", line 18, in <module> import cfnbootstrap ImportError: No module named cfnbootstrap (Executor::NonZeroExitStatus) Why is this happening? is this module...

502 bad gateway nginx + puma + rails 3.2 on Elastic Beanstalk

ruby-on-rails,nginx,elastic-beanstalk,puma
The deployment was successful and everything is green. But when we try to access the application URL, it gives 502 Bad Gateway error. Checking for puma process with ps -aux | grep puma doesn't return any process attached to puma server but pgrep returns following. $pgrep -fl puma 18009 su...

How To Set Folder Permissions in Elastic Beanstalk Using YAML File?

c#,amazon-web-services,configuration,yaml,elastic-beanstalk
I have a C# Web API Elastic Beanstalk app which needs a folder outside the deployment directory that the IUSER and IIS_USERS users can write to. I've created a .config file and put this in the top level .ebextensions folder in my project. The contents are below: commands: 0_mkdir: command:...

No path when executing commands in elastic beanstalk's container_commands

node.js,amazon-web-services,elastic-beanstalk
I am trying to deploy an application on AWS Elastic Beanstalk. I have the following file in .ebextensions: commands: 01-install-git: command: "yum install -y git &>> /tmp/deploy.log" 02-install-nodejs-npm: command: "yum install -y --enablerepo=epel nodejs npm &>> /tmp/deploy.log" 03-install-grunt: command: "npm install -g grunt-cli &>> /tmp/deploy.log" 04-install-coffee: command: "npm install -g...

Increment command timeout in EBS from the Dockerrun.aws.json -AWS

amazon-web-services,deployment,docker,elastic-beanstalk
I am deploying a Dockerfile and a Dockerrun.aws.json in Elastic beanstalk and it was giving an error because some commands were surpassing the maximum command timeout. I can fix this error by going to Updates and Deployments, and modifying the maximum timeout. But I would like to know if there...

rails app wont initialize on elastic beanstalk with hive_geoip2 gem

ruby-on-rails,amazon-web-services,hive,elastic-beanstalk,geoip
I have a rails app deployed on Elastic Beanstalk. When I add the gem hive_geoip2 it works in development but when I deploy to eb the rails app fails to initialize with the following error: /opt/rubies/ruby-2.1.5/lib/ruby/gems/2.1.0/gems/bundler-1.7.3/lib/bundler/runtime.rb:76:in `require': libmaxminddb.so.0: cannot open shared object file: No such file or directory - /opt/rubies/ruby-2.1.5/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0-static/hive_geoip2-0.1.2/hive_geoip2.so...

Environment-speciifc ebextensions on Elastic Beanstalk

amazon-web-services,elastic-beanstalk
I deploy the same application to two different environments app-web and app-worker. The configuration of these environments differs slightly (e.g. they run different processes) so some different .ebextensions will be required for each. Is there a way to specify that a certain config file should only be run for a...

sbt-native-packager with Docker and Elastic Beanstalk congifuation

playframework,sbt,docker,elastic-beanstalk,sbt-native-packager
I'm using sbt-native-packager to deploy my Playframework app to Elastic Beanstalk as a Docker container. It's all working pretty well, but I need to customize the ELB instance a bit. Amazon documents here that you do this by creating a .config file "in an .ebextensions top-level directory of your source...

Issue with running Python on Amazon Elastic Beanstalk

python,amazon-web-services,elastic-beanstalk
I've just started using AWS today. I want to run my Python app on Elastic Beanstalk but when I just type print "Hello World" , it results in an error "Update environment operation is complete, but with errors. For more information, see troubleshooting documentation". Any help would be appreciated, thanks...

Elastic Beanstalk Deployment Errno 2 No Such File / Directory

bash,amazon-web-services,elastic-beanstalk
It's my first time deploying something to AWS using Elastic Beanstalk and so far I've gotten to the point where I can run eb create and get started. The first time I did this I got Errno 13. Specifically, I got to the point where it tried to create the...

Is there any way to use elastic IP with elastic beanstalk?

dns,elastic-beanstalk,cloudflare
So i have a senario, where i have an application which can be assigned to any client's domain without doing anything on the application side. Client just adds the Cnames (the long url that is assigned to every Beanstalk app) of the Elastic Beanstalk URL. So when client goes to...

How to collect logs file form s3 ? elasticbeanstalk

amazon-web-services,amazon-s3,elastic-beanstalk
I've enable log files rotations to amazon s3, every hour amazon create file "var_log_httpd_rotated_error_log.gz" for every instance at my elastic beanstalk environment. first question : the log files will not overlap ? so every time amazon save the file at s3, it also delete it from the instance and create...

Customizing Nginx Configuration in AWS Elastic Beanstalk

ruby-on-rails,amazon-web-services,nginx,elastic-beanstalk,amazon-elastic-beanstalk
I'm running a rails application on Ruby 2.0/Puma instances and am trying to customize the nginx configuration. I need to increase the permitted request size to allow file uploads. I've found some other posts that have lead me to add this to my .ebextensions: files: "/etc/nginx/conf.d/proxy.conf" : mode: "000755" owner:...

Port forwarding in when running a Tomcat Docker in an AWS Elastic Beanstalk application

java,tomcat,amazon-web-services,docker,elastic-beanstalk
I have a Tomcat 7.0 webapp running inside a docker container on AWS Elastic Beanstalk (EB) (I followed the tutorial here). When I browse to my EB url myapplication.elasticbeanstalk.com, I get a 502 Bad Gateway by served by nginx. So its immediately clear that my port 80 is not forwarding...

Exclude directories from elastic beanstalk deploy

git,amazon-web-services,elastic-beanstalk
I have some directories that I would like to be in my local git repository, but NOT in the remote repository when I deploy to my beanstalk environment. I have googled a bit, and found a few years old posts like this: http://blog.beanstalkapp.com/post/38164899272/patterns-for-excluded-deployment-paths that explain that there is this option...

How do I route in Flask based on the domain of the requested URL?

routing,flask,elastic-beanstalk
I'm trying to implement routing based on the host of the requested URL for a Flask site I'm building. Based on what I've read here and elsewhere, it seems like this should be possible with something like from flask import Flask application = Flask(__name__) application.url_map.host_matching = True @application.route("/", host="<prefix>.mydomain.com:<port>") def...

eb: error: unrecognized arguments: --database.engine.version

amazon-web-services,elastic-beanstalk
According to the AWS EB documentation for eb create, I should be able to create an elastic beanstalk environment with an postgres database, via this command: eb create myapp-env --database.engine.version postgres-9.4.1 usage: eb {cmd} <environment_name> [options ...] eb: error: unrecognized arguments: --database.engine.version postgres-9.4.1 I've also tried these command line arguments...

aws elastic beanstalk “Request-URI Too Long”

apache,amazon-web-services,amazon-ec2,elastic-beanstalk
I have a setup running a python flask app on elastic beanstalk. My Issue is that I'm getting this 414 error code. I have added LimitRequestLine 200000 to httpd.conf, and restarting with sudo httpd service restart on the shell of the ec2 instance, but it seems to not do the...

Deploying existing Elastic Beanstalk inside VPC without deleting the RDS associated

amazon-web-services,static,elastic-beanstalk,vpc
I've currently in production a beanstalk with loadbalanced instances, and an associated RDS. Also got some routing/dns configuration that allow me to call my beanstalk with a "straight" domain name. I'm in the need to assign a static IP my Elastic Beanstalk Application so I can give it to a...

Keep config file secure using github and Elastic Beanstalk?

amazon-web-services,github,passwords,config,elastic-beanstalk
I am using github (public) to keep track of my web app and about to deploy it to Elastic Beanstalk. Is there a good way to keep my config file secure which has RDS username/password? I have to add the file to git in order to push it to Elastic...

AWS EC2 Container Service / Elastic Beanstalk Docker Container Port udp binding

amazon-web-services,amazon-ec2,docker,elastic-beanstalk,ec2-container-service
According to the documentation of ECS task definitions, this is how we define port mappings. "portMappings": [ { "containerPort": integer, "hostPort": integer } ... ] By default this is binding port over tcp. How to achieve udp port bindings to docker containers running in AWS Elastic Beanstalk (Multi-container) or with...

Elastic beanstalk[Rails] deploy issue - Cannot allocate memory

javascript,ruby-on-rails,ruby,amazon-web-services,elastic-beanstalk
I'm experiencing the below error when deploying to Elastic beanstalk. This is a ruby app running Rails 4.1.9 and Ruby 2.1.4 on Puma. The stacktrace is as follows: Errno::ENOMEM: Cannot allocate memory - node (in /var/app/ondeck/app/assets/javascripts/my_javascript.js) My javascript file is pretty basic, it looks like this //= require jquery //=...

How to retrieve sane stdout/stderr logging for Elastic Beanstalk deployment

amazon-web-services,elastic-beanstalk,codeship
When I attempt an elastic beanstalk deployment, one of my container_commands may fail. Unfortunately, the elastic beanstalk log eb-commandprocessor.log only reports a non-zero exit status: Error occurred during build: Command 08_collectstatic failed (Executor::NonZeroExitStatus) The rest of the stdout/stderr apparently fails to log because of Unicode characters. (I've successfully troubleshooted other...

Can I/Should I add Cloudfront to my webservice running on elastic beanstalk

caching,amazon-web-services,elastic-beanstalk,amazon-cloudfront
Current situation I have a Java Tomcat application running on ElasticBeanstalk. The application is a webservice that receives search queries and returns the results in Xml format. The webservice is only updated with new data once a month so any query sent at the end of the month will return...

SailsJS is unstable on Amazon elastic beanstalk

amazon-web-services,sails.js,elastic-beanstalk,waterline
I'm using sails.js on an elastic beanstalk auto-scaling deployment, but things are misbehaving, it seems very unstable. For example, (seemingly) out of the blue the following custom model method, that had been running fine for the last 3 months or so, stopped working var obj = this.toObject(); obj.permissions = obj.getPermissions();...

AWS Elastic Beanstalk execute wget in cronjob

amazon-web-services,cron,wget,elastic-beanstalk
I'm trying to run a wget command every minute that simply hits a url. I currently have the following in a file called project.config in the .ebextensions folder: 01_test_cron: command: * * * * * /usr/bin/wget -O /dev/null http://name.of.url It currently does not execute - are there any glaring errors?...

AWS Elastic BeanStalk “eb init” Error

python,linux,amazon-web-services,elastic-beanstalk
I created an Elastic Beanstalk Environment using the console. Then I logged in to the EB EC2 instance and installed awsebcli: sudo pip install awsebcli I configured aws: aws configure and ran "eb init": eb init Then I get the following error: 2015-05-06 20:09:41,678 (ERROR) ebcli.lib.aws : Error while contacting...

Elastic Beanstalk with Docker and Persistent Storage

docker,elastic-beanstalk
we have developed a Java Web-application that I'm currently trying to re-configure to be able to deploy it on docker and at the end put the container on EBS. Currently the application is running on a bare metal server. I externalised the App configuration which are environment specific. I'm able...

Deploy only specified files to AWS Elastic Beanstalk

git,amazon-web-services,deployment,elastic-beanstalk
AWS Elastic Beanstalk allows for you to upload a git repository to your environment with a simple eb deploy command. I know anything placed inside the .gitignore won't be deployed, but what about source files (sass, uncompressed scripts) I want to keep in the repository, but don't want uploaded on...

Trouble with Wordpress local development and deployments

wordpress,amazon-web-services,deployment,elastic-beanstalk,w3-total-cache
The Setup: I'm setting up a Wordpress-powered application using Elastic Beanstalk from Amazon Web Services. All development is being done locally under a MAMP apache2/php5 server environment with a GIT repository controlling the entire application root. Deployment Workflow: After committing any code changes (edits, new plugins, etc) to the repo...

How to create virtual folders using php?

php,apache,elastic-beanstalk,php-5.4
I am using php with aws elasticbeanstalk. I want to create folder that accept this url : www.example.com/481818 where 481818 present an id that is changed. so i want to create file that accept every request form this structure www.example.com/integer. and fetch the id. i don't know how to create...

Node & Elastic Beanstalk: Set environment NODE_ENV=prod

node.js,elastic-beanstalk
I need to execute the following command for production environment: NODE_ENV=production node app.js I tried passing it as a command under Configueration: I get the following error in the logs: sh: NODE_ENV=prod node app.js: command not found I also tried: NODE_ENV=prod // error: sh: NODE_ENV=prod: command not found NODE_ENV=prod app.js...

How do you setup an AWS Elastic Beanstalk Docker Platform running Django?

django,amazon-web-services,docker,elastic-beanstalk
I have been running a regular Django site using the regular EB Python platform, but for some reasons, I want to migrate to using a Docker image, but still get everything I get from Elastic Beanstalk. In order to demonstrate the problem, I created a small Django project at https://github.com/dkarchmer/aws-eb-docker-django...

AWS Beanstalk - Passenger Standalone not serving web pages after Rails 4.2.1 migration

ruby-on-rails,ruby-on-rails-4,amazon-web-services,passenger,elastic-beanstalk
My Rails 3.2.21 app was running fine on AWS Beanstalk under Passenger Standalone 4.0.53. I migrated the app to Rails 4.2.1 and got it passing all tests on my local development machine (Ubuntu, WEBrick). I deployed it to Beanstalk (aws.push), the deploy succeeds (copied from /ondeck to /current) and: nothing....

How to run socket.io and express on the same elastic beanstalk instance?

node.js,express,socket.io,elastic-beanstalk
We have and elastic beanstalk instance, we have some rest services and socket.io too. express is being started ad port 80. I started socket.io at 3001. but unable to connect this socket. I have also switched off the proxy, from nginx to off. code for socket is as below var...

how to configure eb cli with eb env that is already running

amazon-web-services,amazon-ec2,elastic-beanstalk
I have taken over a project that has been deployed to elastic beanstalk. I would like to configure my eb cli to deploy to the existing environment without modifying that environment. From my research I get the impression that eb init is the proper command, however when I started going...

Deploy AWS Elastic beanstalk to an environment in different region

git,amazon-web-services,elastic-beanstalk,aws-cli
I'm a little new to Elastic Beanstalk on AWS so forgive me if this is a little newbie.... But we've got an instance of our product in a new region (EU) and I'm unsure how to bind a specific git brand to deploy to that environment? (Using CLI3) If it...

Managing Multiple AWS Accounts using EB deploy

ruby,amazon-web-services,elastic-beanstalk
I am working on two different projects for two different companies. Each of them gave me access to their AWS management console to deploy Ruby applications. I'm writing the code on my Mac OS/X. I can't see where to change the configuration for the eb commands to point to the...

AWS Beanstalk Auto-scaling Scaling Triggers with HealthyHostCount or UnhealthyHost count

amazon-web-services,elastic-beanstalk,autoscaling
I have Elastic Beanstalk Environment , I need to setup autoscaling policy like if Elastic Loadbalancer has Unhealthy instance it will bring up new instance The Policy I used right now is below ...

Version error in AWS Elastic beanstalk for Multicontainer Docker Configuration

mysql,amazon-web-services,docker,elastic-beanstalk,phabricator
Trying to link mysql with phabricator in Elastic beanstalk with help of dockerrun.aws.json file as shown below. But it sows error as [Instance: i-cdbaf100 Module: AWSEBAutoScalingGroup ConfigSet: null] Command failed on instance. Return code: 1 Output: Invalid Dockerrun.aws.json version, abort deployment. Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/03build.sh failed. For more detail, check /var/log/eb-activity.log using...

Recommendations For Saving Files in Elastic Beanstalk

c#,amazon-web-services,amazon-ec2,amazon-s3,elastic-beanstalk
I have an ELB application that we have just added photo upload functionality to. Currently this saves the images in a folder within the deployment directory in ELB, saving the URL to a DynamoDb table. Everything works fine. Whenever a user wants to see an image we simply attach the...

How to specify sensitive environment variables at deploy time with Elastic Beanstalk

amazon-web-services,elastic-beanstalk,amazon-elastic-beanstalk
I am deploying a Python Flask application with Elastic Beanstalk. I have a config file /.ebextensions/01.config where among other things I set some environment variables - some of which should be secret. The file looks something like this: packages: yum: gcc: [] git: [] postgresql93-devel: [] option_settings: "aws:elasticbeanstalk:application:environment": SECRET_KEY: "sensitive"...

How to actually deploy to a serious host?

amazon-web-services,deployment,meteor,amazon-ec2,elastic-beanstalk
It's so undescribably discouraging and frustrating that deploying is such a pain. There are no step-by-step guides and every information source is outdated. I have NO idea where to begin! I want to deploy Meteor apps to AWS (EC2 or Elastic Beanstalk) but now I've learned that it doesn't support...

EB Worker cron.yaml - is not authorized to perform: dynamodb:UpdateItem

amazon-web-services,cron,elastic-beanstalk
I have been trying to implement a cron job on my EB worker. My EB CLI on a deploy says "ERROR: Update environment operation is complete, but with errors." My yaml seems to parse just fine and in my EB events list I see the line "Successfully loaded 1 scheduled...

AWS Elastic Beanstalk Error - Passenger

ruby-on-rails,amazon-web-services,passenger,elastic-beanstalk
I've tried various solutions that are intuitive and then have tried the solutions that have apparently helped others. I've spun up and terminated my Rails 4 app about 10 times. So...I thought I'd turn here to see if anyone knew an answer. Here is the log file: [ 2015-03-06 06:12:27.0070...

In elastic beanstalk, how do I run a command before the container is launched?

elastic-beanstalk
I'm using the a single container docker version of Elastic Beanstalk to deploy a ruby on rails application (my docker is pre-built). The docker image specifies a CMD of "rails server". I would like to issue "rake db:migrate" just before the "rails server" is run. Is there a way to...

AWS node.js migration

node.js,amazon-web-services,nginx,amazon-ec2,elastic-beanstalk
I am about to inherit on a Node.js project which is a number of node webservers running on a single EC2 instance. Routing is done using nginx instance running on the same EC2 instance, these node servers connect to RDS postgres dbs and elastiCache redis instance. I am to move...

Issue Setting Up Elastic Beanstalk Instance - Could Not Connect to Server

amazon-web-services,elastic-beanstalk,aws-ec2
I've been trying to set up a website on AWS and after running eb init and eb create and choosing my settings without any issues I ran into the following error: ERROR: [Instance: i-f8e3c005 Module: AWSEBAutoScalingGroup ConfigSet: null] Command failed on instance. Return code: 1 Output: (TRUNCATED)...conn = _connect(dsn, connection_factory=connection_factory,...

AWS Elastic Beanstalk Post Deploy Script

ruby-on-rails,amazon-web-services,amazon-ec2,elastic-beanstalk
I'm attempting to add a post deployment script to my Elastic Beanstalk. I've read a few blog posts (read the references) that reference adding a config file to the .elasticbeanstalk directory. The config file is supposed to create a shell script and copy it to the directory: /opt/elasticbeanstalk/hooks/appdeploy/post In my...

How to access the nodes behind the amazon load balancer directly

amazon-web-services,load-balancing,elastic-beanstalk
I have an application running on elastic beanstalk. The application is load balanced, and the SSL is handled by the load balancer. How do I securely access the individual nodes in the cluster? I want to do this so that I can connect via JMX and interrogate the individual nodes...

How to set up AWS credentials for Node.js app deployed to Elastic Beanstalk and talking to S3?

amazon-web-services,amazon-ec2,amazon-s3,elastic-beanstalk
My node.js app is deployed to Elastic Beanstalk and talks to S3 via aws-sdk. Locally, all works fine because AWS credentials are taken from my local ~/.aws/credentials. But, when deployed to Elastic Beanstalk I get an "Access Denied" error because my node app doesn't have the AWS credentials to talk...

Where does elastic beanstalk t2 server store my node.js app files?

node.js,amazon-ec2,elastic-beanstalk
From an architecture perspective I'm trying to get a better understand of how and where files deployed to eb (t2) server are stored. I see some .zip files in s3 that show when I upload something via the eb interface, though how/where exactly does this get end up on my...

Development environment with Docker and deploying to AWS Elastic Beanstalk

php,laravel,docker,elastic-beanstalk
I'm writing a PHP application and want the development environment to be a Docker container. To do that, I've created a Dockerfile in the root of my project that installs all the packages required by my application, copies over configuration files to the container and then installs my application. This...

How to match query terms containing hyphens or trailing space in elasticsearch

elasticsearch,lucene,elastic-beanstalk
In the mapping char_filter section of elasticsearch mapping, its kind of vague and I'm having a lot of difficulty understanding if and how to use charfilter analyzer: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/analysis-mapping-charfilter.html Basically the data we are storing in the index are ids of type String that look like this: "008392342000". I want to...

why is my elastic beanstalk instance being replaced when I deploy?

docker,elastic-beanstalk,amazon-elastic-beanstalk
I have a docker based elastic beanstalk environment, hosting a ruby on rails web application. The environment is a single instance box. whenever I issue an eb deploy command, elastic beanstalk terminates the instance and launches a new one. I was expecting that EB would launch a new container in...

What should I set for origin domain name when using Cloudfront, EB and Route 53?

amazon-web-services,elastic-beanstalk,amazon-cloudfront,amazon-route53
I'm trying to set up CloudFront but getting stuck on the first field origin domain name Currently Im using Elastic Beanstalk to deploy my webservice as an Application, and the EB url is mapped to a Route 53 domain, the customer accesses the webservice via the Route 53 domain. With...

Deploy python web server on AWS Elastic Beanstalk

python,amazon-web-services,websocket,webserver,elastic-beanstalk
I'm deploying an python web server on AWS now and I have a some question about it. I'm using websocket to communicate between back end and front end. Do I have to use framework like django or flask? If not, where should I put the index.html file? in other word,...

Elastic Beanstalk environment variables for Docker host

docker,elastic-beanstalk,beanstalk,dockerfile,amazon-elastic-beanstalk
I have an EB env with Docker web app (rails) properly deployed. I set several EB env variables and they are properly visible in the container. Now - I'd like these EB env variables to be visible to the EC2 instance host, so that I can use them in the...

Install package globally with Elastic Beanstalk

amazon-web-services,elastic-beanstalk
I'm deploying an app using Elastic Beanstalk and part of the app has a grunt task that runs "sass", I have sass being installed but it is being installed locally and thus isn't part of the PATH, so the grunt task fails. I just attempted adding a command to the...

Deploy Node.js app to AWS elastic beanstalk that contains static assets

node.js,amazon-web-services,amazon-s3,elastic-beanstalk
I'm having some trouble visualizing how I should handle static assets with my EB Node.js app. It only deploys whats committed in the git repo when you do eb deploy (correct?) but I don't want to commit all our static files. Currently we are uploading to S3 and the app...

Deploying a Java web application to Amazon

java,mysql,amazon-web-services,amazon-ec2,elastic-beanstalk
I am sure this question has been asked and answered before multiple times. But unfortunately, I am still not clear. Here is my issue. I have a JSP, Servlet application which uses MySQL as the database. I have built the WAR file as well. Now I am in need of...

Why is CloudFront working via one CNAME record but not another?

amazon-web-services,elastic-beanstalk,amazon-cloudfront,amazon-route53
So assume company name is widget I have elastic beanstalk instance at widget.elasticbeanstalk.com I have a domain name widget.com under Route53 control I have a CNAME record direct.widget.com pointing to widget.elasticbeanstalk.com I have another CNAME record search.widget.com also pointing to widget.elasticbeanstalk.com This works fine I can access my eb instance...

Elastic Beanstalk, Bundler could not find compatible versions for gem “bundler”

ruby-on-rails,ruby,amazon-web-services,elastic-beanstalk
I have tried Elastic Beanstalk for rails. When I run eb deploy I got this error. I need to install at least bundler 1.8.4. Any idea how to resolve this? Bundler could not find compatible versions for gem "bundler": In Gemfile: bundler (>= 1.8.4) ruby Current Bundler version: bundler (1.7.3)...

Does SQS really send multiple S3 PUT object records per message?

amazon-web-services,amazon-s3,elastic-beanstalk
I've set up an S3 bucket to emit an event on PUT object to SQS, and I'm handling the SQS queue in an EB worker tier. The schema for the message that SQS sends is here: http://docs.aws.amazon.com/AmazonS3/latest/dev/notification-content-structure.html Records is an array, implying that there can be multiple records sent in...

SSH aws ec2 elastic beanstalk without keypair

ssh,amazon-ec2,elastic-beanstalk
I have a running instance that was created without a keypair, as I understand is not possible to apply a keypair to a running instance, I need to ssh connect to the instance to get some logs, how can I do that? Right click on the instance -> Connect, shows...

ebextensions: yum does not install package

amazon-web-services,amazon-ec2,elastic-beanstalk
I am trying to make an ebextensions file which will install wkhtmltopdf. Currently it looks like this: packages: yum: xorg-x11-fonts-75dpi: [] libpng: [] xz: [] urw-fonts: [] libXext: [] openssl-devel: [] libXrender: [] rpm: wkhtmltopdf: https://s3-eu-west-1.amazonaws.com/myS3Account/wkhtmltox-0.12.2.1_linux-centos5-amd64.rpm In this case, wkthmltopdf fails to install. I get the following error: Failed dependencies:...

How do I creating a Route53 DNS record for my beanstalk environment?

elastic-beanstalk
I'd like to create an internally well-known dns name that points to the ELB of my (internal ELBScheme) elastic beanstalk environment that's hosting an internal REST API. I tried adding an .ebextensions entry that looked like this: "eb-env-dns-name" : { "Type" : "AWS::Route53::RecordSetGroup", "Properties" : { "HostedZoneName" : "mydomain.com.", "Comment"...

How to install grunt in elastic beanstalk?

node.js,gruntjs,elastic-beanstalk
I'm trying to deploy my app with beanstalk. I start my local environment with grunt dev. The error shows that grunt cannot be found. After logging onto the server with eb ssh, I see that npm is also not installed. I'm looking for next steps in trouble shooting this issue....

Deploying Ruby app to Elastic Beanstalk with custom extension, unable to load compiled file

ruby-on-rails,ruby,gem,elastic-beanstalk
I've been working on a Ruby extension for a project of mine, and I've gotten to the point where I'm ready to deploy it to elastic beanstalk. I decided to make a gem, not because it would really be useful to anyone else, but mostly just because I've never made...

Starting celery worker from multiprocessing

python,flask,multiprocessing,celery,elastic-beanstalk
I'm new to celery. All of the examples I've seen start a celery worker from the command line. e.g: $ celery -A proj worker -l info I'm starting a project on elastic beanstalk and thought it would be nice to have the worker be a subprocess of my web app....

AWS Elastic beanstalk scale triggering

amazon-web-services,elastic-beanstalk
I set the following parameters in my elastic beanstalk environment: Do you think this settings are reasonable? I didn't understand the breach duration parameter. What does it means? is 5 minutes is reasonable? Thanks...

Amazon Elastic Bean Stalk: error: [Errno 13] Permission denied

amazon-web-services,amazon-ec2,flask,elastic-beanstalk
I am building a flask app on Elastic Bean Stalk. And after deploying I'm getting 500 Internal Server Error. When I checked the logs, I found that there was an error. Traceback (most recent call last): File "/opt/python/current/app/application.py", line 32, in <module> application.run(debug=True, port=server_port, host='0.0.0.0') File "/opt/python/run/venv/lib/python2.7/site-packages/flask/app.py", line 739, in...

Why does AWS Elastic Beanstalk Python insert a 'static' rule ahead of all others in priority?

amazon-web-services,flask,url-routing,elastic-beanstalk,werkzeug
The 'static' routing rule for my Python application is behaving strangely in my AWS Elastic Beanstalk application (and nowhere else), appearing to override all other rules. For example, using the two functions below, on both my development machines and test servers elsewhere and on AWS, routes list the static rule...

Elastic Beanstalk maintain the changes made directly via ssh for new instances?

amazon-web-services,amazon,instance,elastic-beanstalk
When the app autoscale, the previous modifications made in first instance will be kept in new instances?

Symfony2 environmental variables

symfony2,amazon-web-services,elastic-beanstalk
I'm trying to use environemntal variables as parameters in Symfony2. However when I run composer update I get: [Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException] You have requested a non-existent parameter "compass.bin". The variables "SYMFONY__COMPASS__BIN" is set both in shell and in apache vhost. Any idea what could cause this? Update Seems the issue is Elastic...

ElasticBeanstalk with Docker: how to use create-environment from aws cli

docker,elastic-beanstalk,aws-cli
I'm trying to use aws cli to create a new environment for Docker. I can do this easily enough through the aws web console, but there I have to choose from the dropdowns "type: WebServer" and "configuration: Docker". I can't see where these options exist in the aws elasticbeanstalk create-environment...

When using Amazon Elastic Beanstalk with tomcat should I use S3 for all my static content

amazon-web-services,amazon-s3,elastic-beanstalk
Currently I deploy my application war file to EB and it contains the code for generating pages plus any png's needed for rendering the pages, I was happy with this because all in one place. But now I know you can configure a S3 bucket as a website would it...

In Nginx, how can I return 404s for specific URL pattern/regex without sending request to the app server?

ruby-on-rails,nginx,elastic-beanstalk,puma
I have an ruby on rails app (puma/nginx) and I'm having some issues with some requests that are hitting the app server and giving errors on my apps. For example, this is a valid route for news article 123456: /api/v1/news/123456 However I'm receiving lots of requests to the API like...

Assign role to instance in .ebextensions

amazon-web-services,elastic-beanstalk,iam
tl;dr Instance gets assumed-role instead of what I set in configuration. I deploy a java application in docker into elastic-beanstalk; I actually set a specific role with my custom policies in .ebextensions/instance.config: - namespace: aws:autoscaling:launchconfiguration option_name: IamInstanceProfile value: custom-profile When I deploy with eb init && eb create --tier worker...

AWS Error: Error during Url validation; check URL and try again

amazon-web-services,elastic-beanstalk
I'm trying to deploy a test site to AWS via the toolkit for visual studio, and I'm getting a strange error at the environment selection page. Google searches are yielding no real information on it. The error appears when I try to validate the url choice. It says, "Error during...

eb cli 3.0 is not putting my settings from my existing environment after connecting it

php,git,amazon-web-services,amazon,elastic-beanstalk
I created a customized Elastic Beanstalk environment from the web interface with configuration for VPC and other things. I now have a local repo that I want to connect to this created environment. I ran eb init and was able to spot my environment and selected it. I then ran...

Provide SSL certificate to PostgreSQL in a Rails app

ruby-on-rails,postgresql,amazon-web-services,elastic-beanstalk
I have a Rails app on Elastic Beanstalk using an Amazon RDS PostgreSQL instance. I'd like pg to use SSL to connect to this DB. Following http://docs.aws.amazon.com/AmazonRDS/[...], I saved rds-combined-ca-bundle.pem at /config/ca/rds.pem and my database.yml looks like this: production: adapter: postgresql database: <%= ENV['DB_NAME'] %> username: <%= ENV['DB_USERNAME'] %> password:...