Questions tagged [opsworks]

AWS OpsWorks configures ec2 instances using Chef for Linux and Windows

Filter by
Sorted by
Tagged with
1 vote
0 answers
332 views

How to upgrade Ruby Bundle version in AWS Opsworks

I have a project running on AWS Opsworks, which has current bundler version of 1.5.3 on Ruby 2.2.2. i want to upgrade the bundle version to 1.17.3 but when i try to do it i am getting this error ...
Nijeesh Joshy's user avatar
3 votes
2 answers
274 views

AWS Opsworks Chef deployment using S3 Archive without making archive public

I'm trying to use the S3 Archive method to do a Chef deployment in Opsworks. I put the Chef archive in S3 and copied the address of https://s3.us-east-2.amazonaws.com/redacted/redacted.tar.gz. I gave ...
five_dollar_shake's user avatar
3 votes
0 answers
146 views

AWS Opsworks 11 does not let me add Ubuntu 14.04 instances

I am already using AWS Opsworks 11 which shows Ubuntu 14.04 LTS in the OS dropdown list. I already have running instances in layers (Ubuntu 14.04), but when I try to add new instances then it throws ...
Shivam Bajpai's user avatar
0 votes
1 answer
468 views

not sure how to properly handle listeners/groups + health check in load balancer on aws

I am trying to wrap my head around AWS' application load balancer. I have a slightly complicated situation where I am running an ec2 instance with a nodejs server that I ultimately only want ...
patrick's user avatar
  • 153
0 votes
1 answer
121 views

OpsWorks Chef 11.10 undefined method 'property'

Chef 11.10 ran fine until we resized an instance, now setup_failed on boot with log: NoMethodError ------------- undefined method `property' for #<Class:0x007f7c97afc100> Cookbook Trace: ------...
alyx's user avatar
  • 231
0 votes
1 answer
110 views

OpsWorks Chef error in dokku deploy

Everything worked fine until I resized one of our ec2 instances, now I'm getting this error in OpsWorks: Exception: Mixlib::ShellOut::ShellCommandFailed: ruby_block[git push --force dokku@localhost:...
alyx's user avatar
  • 231
0 votes
1 answer
42 views

Dealing with deployment on instance start

I can't understand how am I supposed to handle 'Deploy' event that happens on instance start. The stack has two layers (Node.js and Rails) and two apps with distinct recipes to handle 'Deploy' events. ...
synapse's user avatar
  • 499
1 vote
2 answers
3k views

Where is the cron from this Chef recipe?

I have added, and successfully setup and deploy an instance with this recipe: cron "haproxy_log" do command "logrotate /etc/logrotate.d/haproxy" minute '15' end But when I look at /etc/crontab I ...
Hommer Smith's user avatar
0 votes
1 answer
590 views

multiple servers with nginx/rails app serving other server's assets shouldn't be doing this

I've got 2 servers load balanced with ELB. Each server has a copy of the same rails app, with nginx in front and unicorn as the appserver. There is no css file that is loading in a browser window now....
pjammer's user avatar
  • 194
0 votes
1 answer
189 views

AWS hosted Opsworks Chef Automate - How to properly change server name

I'm in the process of writing my IaaC and am instantiating an AWS Chef Automate instance. I'm a newb when it comes to Chef server administration and Chef Automate has a billion moving parts. All ...
Jim's user avatar
  • 355
0 votes
1 answer
447 views

AWS OpsWorks - An error occurred while stopping the instance

Last few days my script (aws-cli) is unable to stop OpsWorks instance. I didn't change anything. When I log into aws.amazon.com it shows: Status: stop_failed Message: An error occurred while stopping ...
Maris B.'s user avatar
  • 182
2 votes
1 answer
997 views

How to launch multiple AWS EC2 machines on Jenkins?

I am using the EC2 plugin in Jenkins (https://wiki.jenkins-ci.org/display/JENKINS/Amazon+EC2+Plugin) for using AWS services. As of now, a job which uses this cloud label spins up a single EC2 ...
vintrojan's user avatar
  • 121
1 vote
1 answer
399 views

Is there a limit on AWS ELB?

I'm running an OpsWorks stack with: 10 c3.2xlarge instances running across 4 availability zones. The CPU never surpasses 5% on each instance. Each instance is connecting (through a memcached layer) ...
Nick Gotch's user avatar
0 votes
1 answer
452 views

How to add tag to Windows Server 2012 instances in AWS OpsWorks through Chef recipe?

My employer has a need to add tags to AWS ec2 instances started in OpsWorks once they come online. The instances are all MS Windows Server 2012 R2 Base in this stack. The goal is to add custom ...
StandardEyre's user avatar
2 votes
2 answers
5k views

How to automatically update EC2 Linux instances without downtime by switching between two instances?

In short - OS Amazon Linux or Ubuntu. One EC2 instance (or OpsWorks instance?) is running. Once a day start second instance, update it with latest security updates, install my app. Shutdown first ...
Maris B.'s user avatar
  • 182
1 vote
0 answers
126 views

Custom AMI fo AWSr Opsworks fails setup phase but logs seem clean?

So I've followed through this userguide for creating an AMI from an EBS backed Opsworks instance and it all seemed to go smoothly until I attempted to boot an instance in Opsworks from the new AMI. ...
Hailwood's user avatar
1 vote
0 answers
41 views

Latest GitHub source not being deployed properly by Opsworks

I have an Opsworks Rails Layer (nginx/unicorn) instance that has been running for a while, and I have successfully deployed my rails app to it many times directly from GitHub. Yesterday, I started ...
readyornot's user avatar
0 votes
0 answers
293 views

What settings/permissions are required to grant IAM user ssh access to opswork instance?

In opsworks I have imported the user and marked them to have ssh/rdp access. However, I am unable to ssh into the instance once it is up as that user. And when I access the instance as the root user ...
Aaric Pittman's user avatar
0 votes
1 answer
345 views

Can I include recipes in Chef deployment hooks?

It might just be me doing something horribly wrong, but I seem to be unable to use custom recipes in Chef / AWS OpsWorks deploy hooks: # before_symlink.rb include_recipe 'supervisor' OpsWorks deploy ...
cafonso's user avatar
  • 121
2 votes
1 answer
1k views

How to configure network interface with chef ifconfig resource for IP determined at recipe runtime

I'm working with Chef through Amazon Opsworks and need to provision and configure additional network interfaces for some of my servers, and I'm having trouble figuring out how to properly use the ...
Michael Lang's user avatar
1 vote
1 answer
1k views

AWS ELB not configuring properly with EC2 instance

I have a working EC2 instance I'd like to place, along with a copy, behind an Elastic Load Balancer, but I can't get it to work. ELB Settings: Ports: ELB HTTP:80 -> EC2 HTTP:80, default VPC Security ...
OrdinaryHuman's user avatar
3 votes
2 answers
815 views

What is the difference between AWS OpsWorks and my own Chef server?

Is there any difference between using AWS OpsWorks, which uses Chef internally, and using my own installation of Chef? Currently I have a my own Chef server. What are the advantages or disadvantages ...
Vikas Saini's user avatar
-1 votes
1 answer
196 views

Deploy or shut-down nodes based on load with Chef

AWS has OpsWorks, which is their own take on Chef. We have several reasons[1] why we want to use a "normal" chef-server/-client setup. But OpsWorks has one feature that I cannot find in chef-...
berkes's user avatar
  • 2,275
1 vote
1 answer
124 views

PermitRootLogin in sshd_config needed for OpsWorks?

I've been poking around my OpsWorks instances and just realized they all appear to be configured with PermitRootLogin without-password. While this is more secure than PermitRootLogin yes I'd really ...
J. Lawson's user avatar
0 votes
0 answers
477 views

AWS Cloudformation OpsWorks Custom Recipe SSH Key

Is there a method to pass a SSH Key through to a Cloudformation script for custom recipes repo when configuring an Amazon Web Services OpsWorks stack besides mangling the newline characters and ...
J. Lawson's user avatar
1 vote
1 answer
703 views

What is the best workflow to build and test your aws opsworks chef cookbooks locally?

For months I've been struggling to find the best workflow for building and testing my aws opsworks cookbooks locally prior to pushing to opsworks. After a lot of stalled attempts I found a blog post ...
Peter M's user avatar
  • 973
1 vote
0 answers
92 views

Use and modify existing Opsworks stack in CloudFormation

I want to create a stack in AWS CloudFormation that uses OpsWorks resources to create a new environment for my application. The thing is that my app needs the OpsWorks stack's id predefined, so I ...
apanagiotou's user avatar
1 vote
1 answer
264 views

Not able to access /srv/www directory

I started my AWS OpsWorks instance this morning and received an error that it could not access the /srv/www directory. This is strange since everything worked normally yesterday. The instance is ...
Wolfgang's user avatar
  • 111
0 votes
1 answer
46 views

Single cluster of servers handling multiple ssl enabled websites

I'm running several e-commerce websites, each is processed by the same php code which loads different configuration based on the domain that it is being accessed from. I'm trying to use OpsWorks to ...
James's user avatar
  • 183
5 votes
1 answer
289 views

What do the default opsworks cookbooks actually do?

The company I'm working for is making a move to AWS and so I've been given the opportunity to start investigating the various services they provide. OpsWorks looks really good for rolling out mass ...
James's user avatar
  • 183
0 votes
2 answers
864 views

How can I use the apache2 cookbook from supermarket.chef.io in AWS OpsWorks?

I have a cookbook that is setting up some simple apache configuration and I am using the apache2 cookbook from SuperMarket. I'm trying to run my cookbook's recipes using AWS OpsWorks with Chef 11.10....
Matthew J Morrison's user avatar
0 votes
1 answer
84 views

Opsworks & Chef - Customize each app deployed with same recipes

I have a set of recipes that deploy python apps to AWS instances, they work well. I want to deploy two different apps with slight differences, like one needs async worker code installed and the other ...
Jake's user avatar
  • 631
1 vote
1 answer
81 views

Correct way to load balance a node app in opsworks

I have an Opsworks stack with 2 different node apps running in the same layer. One of these apps needs to be load balanced as it will be accessed by the general public, but the other is only accessed ...
Carasel's user avatar
  • 111
0 votes
2 answers
434 views

CloudFormation / Opsworks: public address of OpsWorks instance in CloudFormation template

I've got a CloudFormation template that's launching a central server instance using OpsWorks (so I'm defining an OpsWorks::App, OpsWorks::Instance, OpsWorks::Layer and OpsWorks::Stack). Elsewhere in ...
MrCranky's user avatar
2 votes
1 answer
131 views

Key management for HAProxy instances in OpsWorks

I'm trying to use client certificate verification in an OpsWorks HAProxy instance. The question I'm running into, and it's probably a noob issue, is how am I supposed to deploy my ssl private key to ...
Chris's user avatar
  • 123
1 vote
1 answer
671 views

Stop opsworks deployment after first fail

I have finally finished setting up a fully functional environment in AWS Opsworks for one of our projects and but haven't gone fully live with it. After doing some tweaks to one of my templates, I ...
Titi's user avatar
  • 240
0 votes
1 answer
267 views

How to get Get Amazon User Name / User ID from Opsworks deployment hooks?

I'm trying to convert a Capistrano deploy script to OpsWorks recipes. I'm doing so far so good, except for Slack integration. In the Capistrano script, it says John Doe is deploying FooProject ...
Ardee Aram's user avatar
3 votes
2 answers
3k views

Is there a good way to clone a whole EC2 stack to another availability zone?

I've got a dozen or so EBS backed instances of various sizes in a VPC, multiple security groups, route53 for internal name service. I'd like to clone the whole thing to another availability zone. Has ...
jorfus's user avatar
  • 785
0 votes
1 answer
499 views

Installing node.js on a PHP App Server (OpsWorks)

I have a PHP App Server running Ubuntu 14.04 with a stack that contains an ELB, the server, and a MySQL RDS. All of this is working as expected, but to finalise my deployment I need to install node.js....
J Young's user avatar
  • 131
0 votes
1 answer
765 views

Chef: mongodb::user_management failing in aws opsworks with "NameError: uninitialized constant Mongo::MongoClient"

I have been using the mongodb cookbook successfully to create user accounts for months but recently something has changed and I can't figure out what it is. The default recipe completes without ...
Peter M's user avatar
  • 973
3 votes
1 answer
797 views

What is the best way to share an AWS RDS instance across multiple Stacks?

I'd like to create one larger RDS instance and share it across OpsWorks stacks so I can pool the database resources across multiple applications. Here is a reference to the OpsWorks docs for ...
TomDavies's user avatar
  • 141
1 vote
1 answer
2k views

Error 'you must supply a name when declaring a config resouce' when deploying a rails app to OpsWorks

When moving a rails app from engine yard to OpsWorks, I am getting the following error: Error executing action `deploy` on resource 'deploy[{{ app path }}]' you must supply a name when declaring a ...
Darth Egregious's user avatar
1 vote
2 answers
847 views

OpsWorks environment variables available to PHP CLI

We are deploying a Laravel-based application to AWS using OpsWorks. We have defined environment variables through the OpsWorks console and they are correctly seen by Apache. However, when running CLI ...
cafonso's user avatar
  • 121
0 votes
1 answer
1k views

How can I get Node.JS 0.12.0 running on AWS OpsWorks

I would like to use AWS OpsWorks and as an application layer I would like to use Node.JS v0.12.0. However, I noticed that the latest supported Node version is 0.10.33. I also noticed that OpsWorks ...
Shade's user avatar
  • 111
0 votes
1 answer
1k views

How I can Add variables to PHP.ini using chef

I am using redis into my project using chef. We are creating server automation, so everything is done using chef recipe's only. I have installed php-redis using chef. Now I need to add two variables ...
Ankur Aggarwal's user avatar
0 votes
1 answer
1k views

Using Redis for multiple Instances for session management

Hi We are in the process of implementing AWS opsworks. There will be multiple instances of PHP App Servers and one instance of mysql. We are planning to use redis and phpredis for session and data ...
Ankur Aggarwal's user avatar
0 votes
2 answers
175 views

How AWS opsworks manages user uploaded content

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. ...
Ankur Aggarwal's user avatar
0 votes
1 answer
235 views

Is it okay to delete .git directory in AWS OpsWorks S3 deployment?

I'm using AWS OpsWorks S3 deployment for quite some time. Suddenly the deployment fails. When I checked the instance, it turns out the disk is full. When I checked the release path inside the /srv/www/...
Petra Barus's user avatar
3 votes
1 answer
7k views

(111: Connection refused) while connecting to upstream - Opsworks Rails 4

I deployed a rails 4 application in OpsWorks (Ubuntu 14.04, nginx and unicorn), when I open the homepage I'm getting a 502 Bad Gateway error. In nginx/error.log I can see this error: 2015/01/25 06:19:...
darkcode's user avatar
  • 131
0 votes
1 answer
1k views

opsworks/chef databag where to put the json file?

Hello I'm reading this howto: https://github.com/imoglobe/opsworks-cookbooks/blob/master/user/README.md but it does not mention where to put the data bag in the cookbook with the list of users in json ...
merge delete's user avatar