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:
commit
a61be1055a
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue