Learning AWS and Chef (1)

The cloud platform like AWS and OpenStack are gaining popularity these days, and I came up with my mind to take time to study on them. The followings are some notes of my first trials.

AWS OpsWorks

http://aws.amazon.com/opsworks/

AWS OpsWorks is an application management service using chef as its configuration engine. It can define the layer of application on EC2 instances with some pre-configured cookbook settings, like rails and node.js servers.

https://github.com/aws/opsworks-cookbooks

It’s nice to have default built-in chef recipes, but it’s still limited ones yet (also, issues and pull requests seems stacking up).

AWS Documentation > OpsWorks > User Guide > Cookbooks and Recipes > Cookbook Repositories

OpsWorks supports loading custom cookbook too, but it’s a little cumbersome. I tried to put them on GitHub, but it requires very fixed directory structure as in the above User Guide. There’re many public cookbooks in the GitHub, but it cannot be easily applied.

If your cookbooks are fully established, this approach may work, but it might be a little difficult to take try and error approach.

Vagrant-AWS

http://www.vagrantup.com/

https://github.com/mitchellh/vagrant-aws/

Then I’m switching to the aws plugin for vagrant. It nicely starts up EC2 instances through standard vagrant CLI commands, as similar way as local virtual machines.

Create your own git server easily with Chef and the Vagrant AWS plugin: Part 1.

The above site nicely describes the process to setup git server on AWS. Along with the “berkshelf” gem which manages cookbooks, it seems to allow more flexibly setup of chef environment. Nice.

Advertisements

Posted on December 20, 2013, in Web. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: