Questions tagged [opsworks]

AWS OpsWorks configures ec2 instances using Chef for Linux and Windows

AWS OpsWorks is an Amazon service that configures Elastic Compute Cloud instances using Chef for Linux and Microsoft Windows Server


76 questions
2
votes
1 answer

AWS OpsWorks Deployment with Multiple Layers

On our opsworks stack, we have a stack with 2 App Servers - 1 Java and 1 PHP. Each App Server currently has 1 instance each. We also have several apps in this stack - 1 app is deployed to the Java app server / instance, while the rest are deployed…
2
votes
1 answer

How to install a newer version of php on AWS Opsworks?

Our code base is using PHP 5.5 and we are wanting to deploy on AWS Opsworks however when selecting the PHP App Server layer we are told it has PHP 5.3. What I was hoping is that I could just use the default PHP App Server layer and then specify…
Hailwood
  • 49
  • 7
1
vote
0 answers

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…
1
vote
2 answers

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 don't see it being there. Where does the cron…
Hommer Smith
  • 263
  • 1
  • 2
  • 6
1
vote
1 answer

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) to a db.r3.8xlarge (32 vCPU, 244 GiB RAM) RDS…
1
vote
0 answers

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. Here's the setup log as a gist due to it exceeding…
Hailwood
  • 49
  • 7
1
vote
0 answers

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 seeing a strange error where our latest code changes…
readyornot
  • 163
  • 2
  • 8
1
vote
1 answer

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 groups: AWS-OpsWorks-LB-Server Health Check:…
1
vote
1 answer

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 like to disable this entirely on some specific…
J. Lawson
  • 86
  • 10
1
vote
1 answer

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 by Mike Greiling and have since settled on an…
Peter M
  • 953
  • 2
  • 14
  • 27
1
vote
0 answers

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 created it manually because I can't declare the id in…
1
vote
1 answer

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 running Ubuntu 14.04.3 LTS. After SSH:ing into the…
Wolfgang
  • 111
  • 2
1
vote
1 answer

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 occasionally by the first so does not need load…
Carasel
  • 111
  • 2
1
vote
1 answer

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 accidentally pushed a chef syntax error, updated my…
Titi
  • 220
  • 2
  • 6
1
vote
1 answer

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 config resouce When deploying a rails app to ops…