elastic-beanstalk

How to config Meteor on AWS/EBS using METEOR_SETTINGS environment variable

[亡魂溺海] 提交于 2019-11-28 21:53:57
Trying to set up a Meteor on an AWS/EBS (Amazon Web Services, Elastic Beanstalk) environment. A Meteor dev-run can be passed a command line flag: --settings settings.json where settings.json is a file containing server/client key/value configs (as properly-formatted JSON). Instead of passing the config file in command line, Meteor's deployment uses a METEOR_SETTINGS environment variable. If provided it is expected to contain a json document such as contents of settings.json , for example: $ METEOR_SETTINGS=$(cat settings.json) $ echo $METEOR_SETTINGS { "public": { "s3path": "https:/

Elastic beanstalk deployment taking longer than timeout period, how do I increase timeout period

折月煮酒 提交于 2019-11-28 18:21:04
Elastic beanstalk deployment of a new environment for an application using the AWS website warns Create environment operation is complete, but with command timeouts. Try increasing the timeout period and although it eventually shows environment as green trying to connect to the url just gives Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. An earlier version of the application works fine, but in the ebextensions it has to copy a large file from s3 and then unzip it, this takes

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

梦想与她 提交于 2019-11-28 18:17:14
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. ruby-2.2-(passenger-standalone) or ruby-2.2-(puma) ). I can't upgrade my existing ruby-2.1 environments to ruby-2.2. It appears I have to recreate them completely...that seems silly? Anyone else out there experiencing this? Am I just missing something simple? Extra Information I've been gleefully using ruby-2.1-(passenger-standalone) for several months in my staging and

Setting up private Github access with AWS Elastic Beanstalk and Ruby container

主宰稳场 提交于 2019-11-28 17:32:57
Going by a recent tutorial on setting up AWS Elastic Beanstalk for Ruby deployment using Git, I just set up a Elastic Beanstalk environment from my CI server. However, the application failed to start. I went through the logs to find that bundle install was failing with an error message. Fetching git@github.com:example/private-repository.git Host key verification failed. fatal: The remote end hung up unexpectedly [31mGit error: command git clone 'git@github.com:example/private-repository.git' "/var/app/ondeck/vendor/cache/ruby/1.9.1/cache/bundler/git/private-repository

Where can I find the Tomcat 7 installation folder on Linux AMI in Elastic Beanstalk?

不问归期 提交于 2019-11-28 17:08:46
I have a elastic beanstalk linux-tomcat ami instance with the sample application installed and working off the public dns. I'm able to ssh into the instance but cannot find where tomcat 7 lives (ie. the conf directory to edit server.xml). I've tried this with a 64 and 32 bit ami. Any ideas on where I might find this? I looked under: /etc /usr/share I did find a elasticbeanstalk-tomcat7-deployment file under tmp (was empty). I did a: sudo yum install tomcat7 and the sample application is also being served up from :8080 and working on the public DNS. So I (think) have 2 tomcat servers running on

Redirect to https through url rewrite in IIS within elastic beanstalk's load balancer

可紊 提交于 2019-11-28 16:52:36
How do you use IIS's url rewrite module to force users to use ssl while you are behind an elastic beanstalk load balancer? This is more difficult than it sounds for a few reasons. One, the load balancer is taking care of ssl so requests passed from the load balancer are never using ssl. If you use the traditional rewrite rule you will get an infinite loop of redirects. Another issue to contend with is that the AWS healthcheck will fail if it receives a redirect response. The first step in the solution is to create a healthcheck.html page and set it in the root directory. It doesn't matter what

avoid rebuilding node_modules in elastic beanstalk

让人想犯罪 __ 提交于 2019-11-28 15:09:56
We have a fairly simple node.js app, but due to AWS Elastic Beanstalk deployment mechanism, it takes about 5 minutes to roll-out a new version (via git aws.push ) even after a single file commit. I.e. the commit itself (and upload) is fast (only 1 file to push), but then Elastic Beanstalk fetches whole package from S3, unzips it and runs npm install , which causes node-gyp to compile some modules. Upon installation/building completion, Elastic Beanstalk wipes /var/app/current and replaces it with the new app version. Needless to say, constant node_modules rebuilding is not necessary, and

Difference between Amazon ec2 and AWS Elastic Beanstalk

隐身守侯 提交于 2019-11-28 14:58:37
Can someone please explain what is the difference between EC2 and Beanstalk. I want to know regarding SaaS, PaaS and IaaS. To deploy a web application in wordpress I need a scalable hosting service. If there anything better than my purpose, please let me know as well. Just to inform, I want to host&deploy multiple wordpress and drupal sites. I do not want to give more time for the server and focus on development. But the cloud hosting needs to be auto scalable. Josh Davis First off, EC2 and Elastic Compute Cloud are the same thing. Next, AWS encompasses the range of Web Services that includes

Rotating S3 Logging using log4j with Elastic Beanstalk

馋奶兔 提交于 2019-11-28 11:44:11
I'm trying to transfer each log file to s3. There is an automatic script that picks up tail_catina.log and overwrites anything there. I want each log file: tail_catalina.log1 , tail_catalina.log2 , tail_catalina.log3 etc. saved to my s3. I want everything!! I use a basic combination of logrotate , s3cmd , and cron to achieve this quite simply. I've done a detailed writeup and explanation on my blog . It should work for anyone running an Apache server on a linux environment. I hope folks find it helpful as it took me a few hours to get the details hammered out. The basic script is below, see

AWS Elastic Beanstalk ServiceRole Error When Logging In To A Role

六月ゝ 毕业季﹏ 提交于 2019-11-28 10:16:25
I'm logging into a role through SSO and I'm trying to create a new Elastic Beanstalk environment (newest tomcat if it matters) and I am getting the following error which is preventing me from even getting the environment started building: (Namespace: 'aws:elasticbeanstalk:environment', OptionName: 'ServiceRole'): Invalid service role This is happening even when I am trying to clone an existing environment. I've tried to auto generate a service role and to manually create one. Both are giving the error. This error does not happen when I am logging into a user with the same permissions. When you