FAQ Database Discussion Community


Node.js OpsWorks Layer console logs

node.js,console.log,aws-opsworks,monit
I have an Opsworks stack with a Node.js Layer and Node.js Application. I'm wondering if anyone knows where on an ubuntu 14.04LTS instance the console logs from my application are being printed to. I know the opsworks uses monit to run my application but i'm not sure where its outputting...

Launching Node.js app on OpsWorks

node.js,amazon-web-services,chef,aws-opsworks
I'm having trouble getting my OpsWorks custom recipe to launch my node application. I'm just starting to learn the fundamentals of Chef, so I may be missing something rather obvious. To get me started I forked a copy of AWS nodejs cookbook and made very minor changes. I was also...

AWS OpsWorks - Slow commands

aws-opsworks
My OpWorks commands are taking anywhere between 8-15 minutes for a single instance. This is extremely painful for deployments which should really only take 2-3 minutes. Are these timings usual for a PHP application with no extra deployment recipes?...

How AWS opsworks manages user uploaded content

php,amazon-web-services,aws-opsworks
Might be a rookie question but unable to get clear answer on the web, so please help. Scenario is: I have two instances of php server (Let's say A and B), one instance of loadbalance and one of mysql. Stack is almost ready but one confusion in my mind is...

Update layer security groups

amazon-web-services,aws-opsworks
I have an OpWorks stack setup with layers and instances. On one of the layers I decided I needed a new security attached to it. I attached the group but it is not being applied to the EC2 instance. Is there a command anywhere to perform the applying of the...

How to deploy Jenkins on AWS OpsWorks using Built-in Java App Layer?

tomcat,jenkins,aws-opsworks
I'm attempting to migrate my Jenkins installation from a custom AMI to Opsworks' Java/Tomcat layer. I rather like the sane defaults they set, and I'd like to keep the deployment as simple as possible. This is operating on AWS Opsworks, using Amazon Linux 2014.09. Following the directions for deploying a...

How can I prevent OpsWorks Deployment from defaulting to deploying to my Custom Layer?

amazon-web-services,mean-stack,aws-opsworks
I currently have a relatively simple OpsWorks MEAN stack configuration, consisting of two layers. One layer is the Node.js App Server layer, and the other layer is a Custom MongoDB layer. (As a side note, I hope one day Amazon will provide a Mongo store for OpsWorks, but until then,...

NoMethodError on 'release_path' during chef deployment

ruby-on-rails-4,asset-pipeline,chef,aws-opsworks
I'm pretty new to Chef deployments, and I'm trying to deploy a rails app with OpsWorks. The trouble is with asset precompilation. I have this recipe to perform precompilations: execute "rake assets:precompile" do cwd release_path command "bundle exec rake assets:precompile --trace" environment "RAILS_ENV" => "production" end When I deploy with...

Unicorn Freezes on Start

ruby-on-rails,nginx,unicorn,aws-opsworks
I am doing some troubleshooting to figure out why my site will not load. I am using Amazon OopsWorks. I have an Amazon Linux server running Rails 4.2.0 and Ruby 2.2.0. I'm using Nginx and Unicorn. I have verified Nginx is running. When I try to start Unicorn with bundle...

AWS CLI : Cannot register a EC2 EBS-Backed Instance on Opsworks

amazon-ec2,aws-opsworks,aws-cli
By using AWS CLI, I am trying to create a clone of my OpsWorks stack at a specified DateTime. In order to do so, I made sure I have the following : Hourly snapshots of my running EBS Backed OpsWorks instances. Point-In-Time RDS snapshots of my Databases Everything RDS-related is...

AWS OpsWorks Environment variables not working

ruby-on-rails,aws-opsworks
I am running Ubuntu 14.04 LTS 64 bit Rails Application and I am unable to access my App environment variables. In OpsWorks App panel, I set my environment variables, say: MYKEY: 1234 Then I save and deploy my app again to make these visible. In my Rails app, or the...

Installing dependencies in an OpsWorks chef recipe

chef,bower,aws-opsworks
I have a simple static site layer on OpsWorks that has dependencies listed in a bower.json file. However, when I run bower install --allow-root in my deploy recipe, I get ENOENT No bower.json present. How can I find the correct path of the project in the chef script so I...

How to setup a cronjob for Rails on AWS Opsworks using Chef?

ruby-on-rails,chef,aws-opsworks
I try to setup a cronjob for my Rails app on AWS Opsworks, but I am not sure how it works. There is the official documentation by AWS: http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-extend-cron.html cron "job_name" do hour "1" minute "10" weekday "6" command "cd /srv/www/myapp/current && rake task" end But I cannot figure out...

How can I pull opsworks variables into a .env file with chef?

php,amazon-web-services,nginx,laravel-5,aws-opsworks
I am very new to chef and am on the last piece of the puzzle. I am trying to create a .env file in my project root using variables set in AWS Opsworks. I can't for the life of me figure it out. Does anyone have any suggestions or a...

Configure providers from variables, in a generic way

ruby,chef,aws-opsworks
How can I create a recipe that will populate its attributes using the fiels from an instance of an object in a generic way? As an example, consider the following recipe: component = $auth_docker docker_image component.name do registry component.registry tag component.tag action :pull end When you have 50s of recipes...