164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
|
# File 'lib/stax/stack/crud.rb', line 164
def create
debug("Creating stack #{stack_name}")
ensure_stack(*stack_imports)
Aws::Cfn.create(
stack_name: stack_name,
template_body: cfn_template_body,
template_url: cfn_template_url,
parameters: cfn_parameters_create,
capabilities: cfn_capabilities,
stack_policy_body: stack_policy,
notification_arns: cfn_notification_arns,
enable_termination_protection: cfn_termination_protection,
tags: cfn_tags_array,
)
tail
rescue ::Aws::CloudFormation::Errors::AlreadyExistsException => e
fail_task(e.message)
rescue ::Aws::CloudFormation::Errors::ValidationError => e
warn(e.message)
end
|