Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [opsworks]

AWS OpsWorks configures ec2 instances using Chef for Linux and Windows

3
votes
2answers
21 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 ...
0
votes
0answers
65 views

Opsworks Stack and S3 access, can't get files.

For the life of me I can't figure out why I can't get opsworks to access the files in a bucket! I have a chef 12 stack in opsworks. The repository is a zip file in an S3 bucket called "cheftest" (...
2
votes
0answers
68 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 ...
0
votes
1answer
28 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 ...
0
votes
0answers
46 views

How can a static s3 website communicate with an opsworks ec2 instance?

I have a website that I am hosting from an s3 bucket, but it needs to communicate with a web server I have running on an ec2 instance that is managed by an opsworks stack. How do I route the ec2-...
0
votes
1answer
43 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: ------...
0
votes
1answer
54 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:...
0
votes
1answer
26 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. ...
1
vote
2answers
1k 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 ...
0
votes
1answer
232 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....
0
votes
1answer
129 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 ...
0
votes
1answer
174 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 ...
2
votes
1answer
600 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 ...
1
vote
1answer
131 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) ...
0
votes
1answer
307 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 ...
2
votes
1answer
2k 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 ...
1
vote
0answers
99 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. ...
1
vote
0answers
28 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 ...
0
votes
0answers
162 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 ...
0
votes
1answer
274 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 ...
2
votes
1answer
636 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 ...
1
vote
1answer
478 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 ...
2
votes
2answers
592 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 ...
-1
votes
1answer
157 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-server/...
1
vote
1answer
88 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 ...
0
votes
0answers
280 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 ...
1
vote
1answer
595 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 ...
1
vote
0answers
84 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 ...
1
vote
1answer
94 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 ...
0
votes
1answer
43 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 ...
5
votes
1answer
252 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 go for rolling out mass ...
0
votes
2answers
714 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....
0
votes
1answer
73 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 ...
1
vote
1answer
73 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 ...
0
votes
2answers
388 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 ...
2
votes
1answer
110 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 ...
1
vote
1answer
466 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 ...
0
votes
1answer
255 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 ...
3
votes
2answers
2k 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 ...
0
votes
1answer
381 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....
0
votes
1answer
675 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 ...
2
votes
1answer
588 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 ...
1
vote
1answer
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 ...
1
vote
2answers
749 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 ...
0
votes
1answer
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 ...
0
votes
1answer
957 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 ...
0
votes
1answer
686 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 ...
0
votes
2answers
165 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. ...
0
votes
1answer
191 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/...
3
votes
1answer
5k 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:...