Skip to content

Instantly share code, notes, and snippets.

@johnhampton
johnhampton / ec2_client.rb
Created April 29, 2010 21:33 — forked from jtimberman/ec2_client.rb
generate user_data.json with knife, launch instance with it and magic!
# Author:: Adam Jacob <adam@opscode.com>
# Author:: Joshua Timberman <joshua@opscode.com>
#
# Copyright 2009-2010, Opscode, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0