elastic-beanstalk

Deploy to elasticbeanstalk via CLI deploy command with Dockerrun.aws.json

陌路散爱 提交于 2019-12-04 02:41:40
I am running an elasticbeanstalk application, with multiple environments. This particular application is hosting docker containers which host a webservice. To upload and deploy a new version of the application to one of the environments, I can go through the web client and click on "Upload and Deploy" and from the file option I select my latest Dockerrun.aws.json file, which references the latest version of the container that is privately hosted. The upload and deploy works fine and without issue. To make it simpler for myself and others to deploy I'd like to be able to use the CLI to upload

Build a React App in Elastic Beanstalk

假如想象 提交于 2019-12-04 01:45:36
I followed these instructions and I made a hello world app with React. I uploaded the development files in my EBS and it worked. After that I used the command npm run build , I followed the instructions, I installed the push-state and I tested using localhost. Everything worked fine. But I uploaded the build files to my EBS and it complains that the app does not have the package.json file and the app does not work. What do I have to do to put in package.json to deploy my react app using Elastic Beanstalk? How to deploy the build files generated by npm run build in EBS? I recently deployed my

Exclude directories from elastic beanstalk deploy

ぃ、小莉子 提交于 2019-12-04 01:01:01
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 somewhere, but I have looked everywhere and cannot find it. I think it must still be there and possibly it's been moved around? If that helps (though it probably doesn't make any difference), I've got an environment based on the sample node.js application.

How does AWS Beanstalk use NPM when deploying a Nodejs App?

岁酱吖の 提交于 2019-12-04 00:49:09
I'm curious about the overall workflow of an AWS Beanstalk deployment. I'm assuming it runs npm at some point to get the packages installed on the server(s). But I was just wondering if AWS Beanstalk uses the latest command of 'npm install --production' to install packages. Currently I have a packages.json file as shown below and would like to insure if possible that only the dependencies are being installed and not the devDependencies. "dependencies": { "express": "3.4.4", "jade": "*", "restify": "~2.6.0", "assert": "~1.0.0", "orchestrate": "0.0.2", "chance": "~0.5.3" }, "devDependencies": {

How is Deploying Flask on AWS Elastic Beanstalk different from running script?

倖福魔咒の 提交于 2019-12-04 00:36:45
What is the difference between deploying a Flask application on an ec2 instance (in other words running your script on any computer) and deploying a Flask application via AWS Elastic Beanstalk? The Flask deployment documentation says that: While lightweight and easy to use, Flask’s built-in server is not suitable for production as it doesn’t scale well and by default serves only one request at a time. Some of the options available for properly running Flask in production are documented here. One of the deployment options they recommend is AWS Elastic Beanstalk. When I read through Amazon's

AWS Elastic Beanstalk - why would I use leader_only for a command?

让人想犯罪 __ 提交于 2019-12-04 00:23:58
I am writing a django app which I plan on deploying to AWS via Elastic Beanstalk. I am trying to understand why I would need to specify 'leader_only' for a container command I want to run for my app. More details about this can be found here . It says: Additionally, you can use leader_only. One instance is chosen to be the leader in an Auto Scaling group. If the leader_only value is set to true, the command runs only on the instance that is marked as the leader. If I have several instances running my app because I want to scale it, wouldn't using 'leader_only' run the command on only one

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

邮差的信 提交于 2019-12-03 23:47:04
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 URL validation; check URL and try again." I have changed the url to everything I can think of, with no luck. When I hit next, no matter what the URL is, a message box appears informing me that the URL is not available. Is there a way around this error? dylanthelion AWS. First, go to AWS, click on Services -> IAM, at the

Java Play 2 - Deployment

心不动则不痛 提交于 2019-12-03 21:58:51
Updated 08.18.2012 I am using Play 2.0.2 and I want to deploy my app to Amazon Webservices. I think the easiest way to do this is via Elasticbeanstalk. I used Play2war to package my app https://github.com/dlecan/play2-war-plugin/ I was able to package it with play war According to the usage guide of play2war, I renamed my file to ROOT.war because i used Linux 32bit Tomcat7. I also used the servlet 3.0 as described in the tutorial on play2war. (tomcat 7 -> servlet 3.0). The file size is 31mb. Every time I use Elasticbeanstalk, I get the same log. 2012-08-18 00:25 GMT+0200 WARN Environment

AWS Beanstalk Django / Python Running Local Issue

时光怂恿深爱的人放手 提交于 2019-12-03 21:57:45
I've followed through " Deploying a Django Application to AWS Elastic Beanstalk " tutorial provided by Amazon but I am trying to run the project locally and I am getting a KeyValue error that I have been unable to find a solution for. When running the command: $ ./manage.py help I get this error returned: File "/Users/dave/Sites/djangodev/djangodev/settings.py", line 17, in <module> 'NAME': os.environ['RDS_DB_NAME'], File "/Users/dave/.virtualenvs/djangodev/bin/../lib/python2.7/UserDict.py", line 23, in __getitem__ raise KeyError(key) KeyError: 'RDS_DB_NAME'` I'm actually trying to run $ .

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

那年仲夏 提交于 2019-12-03 21:25:23
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 mydomain(prefix='', port=0, **kwargs): return 'This is My Domain: with prefix ' + prefix @application.route("/", host="<prefix>.<project>elasticbeanstalk.com:<port>") def test(prefix='', project='', port=0, **kwargs): return 'You are