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
|
# * NotificationARNs<~Array>: List of SNS topics to publish events to
|
||||||
# * Parameters<~Hash>: Hash of providers to supply to template
|
# * Parameters<~Hash>: Hash of providers to supply to template
|
||||||
# * TimeoutInMinutes<~Integer>: Minutes to wait before status is set to CREATE_FAILED
|
# * 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
|
# ==== Returns
|
||||||
# * response<~Excon::Response>:
|
# * response<~Excon::Response>:
|
||||||
|
@ -58,6 +60,10 @@ module Fog
|
||||||
if options['TimeoutInMinutes']
|
if options['TimeoutInMinutes']
|
||||||
params['TimeoutInMinutes'] = options['TimeoutInMinutes']
|
params['TimeoutInMinutes'] = options['TimeoutInMinutes']
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if options['Capabilities']
|
||||||
|
params.merge!(Fog::AWS.indexed_param("Capabilities.member", [*options['Capabilities']]))
|
||||||
|
end
|
||||||
|
|
||||||
request({
|
request({
|
||||||
'Action' => 'CreateStack',
|
'Action' => 'CreateStack',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue