1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Merge pull request #566 from lostboy/master

Cloudformation CreateStack should accept Capabilities array as option
This commit is contained in:
Wesley Beary 2011-10-17 12:32:08 -07:00
commit a61be1055a

View file

@ -17,6 +17,8 @@ module Fog
# * NotificationARNs<~Array>: List of SNS topics to publish events to
# * Parameters<~Hash>: Hash of providers to supply to template
# * TimeoutInMinutes<~Integer>: Minutes to wait before status is set to CREATE_FAILED
# * Capabilities<~Array>: List of capabilties the stack is granted. Currently CAPABILITY_IAM
# for allowing the creation of IAM resources
#
# ==== Returns
# * response<~Excon::Response>:
@ -59,6 +61,10 @@ module Fog
params['TimeoutInMinutes'] = options['TimeoutInMinutes']
end
if options['Capabilities']
params.merge!(Fog::AWS.indexed_param("Capabilities.member", [*options['Capabilities']]))
end
request({
'Action' => 'CreateStack',
:parser => Fog::Parsers::AWS::CloudFormation::CreateStack.new