README.md in sparkle_formation-0.2.4 vs README.md in sparkle_formation-0.2.6
- old
+ new
@@ -30,18 +30,17 @@
description 'Name of EC2 key pair'
type 'string'
end
mappings.region_map do
- set!('us-east-1', :ami => 'ami-7f418316')
- set!('us-east-1', :ami => 'ami-7f418316')
- set!('us-west-1', :ami => 'ami-951945d0')
- set!('us-west-2', :ami => 'ami-16fd7026')
- set!('eu-west-1', :ami => 'ami-24506250')
- set!('sa-east-1', :ami => 'ami-3e3be423')
- set!('ap-southeast-1', :ami => 'ami-74dda626')
- set!('ap-northeast-1', :ami => 'ami-dcfa4edd')
+ set!('us-east-1'._no_hump, :ami => 'ami-7f418316')
+ set!('us-west-1'._no_hump, :ami => 'ami-951945d0')
+ set!('us-west-2'._no_hump, :ami => 'ami-16fd7026')
+ set!('eu-west-1'._no_hump, :ami => 'ami-24506250')
+ set!('sa-east-1'._no_hump, :ami => 'ami-3e3be423')
+ set!('ap-southeast-1'._no_hump, :ami => 'ami-74dda626')
+ set!('ap-northeast-1'._no_hump, :ami => 'ami-dcfa4edd')
end
dynamic!(:ec2_instance, :foobar) do
properties do
key_name ref!(:key_name)
@@ -107,10 +106,10 @@
templates.
First, create the component (components/ami.rb):
```ruby
-SparkleFormation.build(:ami) do
+SparkleFormation.build do
mappings.region_map do
set!('us-east-1', :ami => 'ami-7f418316')
set!('us-east-1', :ami => 'ami-7f418316')
set!('us-west-1', :ami => 'ami-951945d0')