howech/cfndsl — pull request #36 by louism517 (2014-03-25 13:54:58+00:00)
Title: Added FnSelect function to JSONable.rb

Added a small function to allow the use of the Cloudformation intrinsic function Fn::Select.

Example usage:

Parameter("ElbSubnets") {
Type "CommaDelimitedList"
Default "subnet-12345, subnet-54321"
}

Resource ("ElasticLoadBalancer") {
Type "AWS::ElasticLoadBalancing::LoadBalancer"
Property("Subnets", [ FnSelect("0", Ref("ElbSubnets")), FnSelect("1", Ref("ElbSubnets")) ] )
...
...
}