Method: Stax::Stack#update

Defined in:
lib/stax/stack/crud.rb

#updateObject



189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
# File 'lib/stax/stack/crud.rb', line 189

def update
  return change if stack_force_changeset
  debug("Updating stack #{stack_name}")
  Aws::Cfn.update(
    stack_name: stack_name,
    template_body: cfn_template_body,
    template_url: cfn_template_url,
    parameters: cfn_parameters_update,
    capabilities: cfn_capabilities,
    stack_policy_during_update_body: stack_policy_during_update,
    notification_arns: cfn_notification_arns,
    tags: cfn_tags_array,
  )
  tail
  update_warn_imports
rescue ::Aws::CloudFormation::Errors::ValidationError => e
  warn(e.message)
end