Module: AwsCftTools::Client::CFT::ChangesetManagement
- Included in:
- AwsCftTools::Client::CFT
- Defined in:
- lib/aws_cft_tools/client/cft/changeset_management.rb
Overview
Provides changeset management functions for the CFT client.
Instance Method Summary collapse
-
#changes_on_stack_create(template, changeset_set) ⇒ Array<AwsCftTools::Change>
Accepts a template for a stack and tries to create a creation changeset for the stack.
-
#changes_on_stack_delete(template, _changeset_set) ⇒ Array<AwsCftTools::DeletionChange>
Accepts a template and creates a mock changeset listing the resources that would be removed if the stack were deleted.
-
#changes_on_stack_update(template, changeset_set) ⇒ Array<AwsCftTools::Change>
Accepts a template for a stack and tries to create an update changeset for that stack.
Instance Method Details
#changes_on_stack_create(template, changeset_set) ⇒ Array<AwsCftTools::Change>
Accepts a template for a stack and tries to create a creation changeset for the stack. The stack must not exist yet in CloudFormation.
30 31 32 |
# File 'lib/aws_cft_tools/client/cft/changeset_management.rb', line 30 def changes_on_stack_create(template, changeset_set) do_changeset(create_changeset_params(template, changeset_set)) end |
#changes_on_stack_delete(template, _changeset_set) ⇒ Array<AwsCftTools::DeletionChange>
Accepts a template and creates a mock changeset listing the resources that would be removed if the stack were deleted. The stack must exist in CloudFormation.
42 43 44 |
# File 'lib/aws_cft_tools/client/cft/changeset_management.rb', line 42 def changes_on_stack_delete(template, _changeset_set) mock_delete_changeset(template) end |
#changes_on_stack_update(template, changeset_set) ⇒ Array<AwsCftTools::Change>
Accepts a template for a stack and tries to create an update changeset for that stack. The stack must already exist in CloudFormation.
18 19 20 |
# File 'lib/aws_cft_tools/client/cft/changeset_management.rb', line 18 def changes_on_stack_update(template, changeset_set) do_changeset(update_changeset_params(template, changeset_set)) end |