Class: Lono::SetInstances::Update
- Inherits:
-
Changeable
- Object
- AbstractBase
- Cfn::Base
- Lono::Sets::Base
- Base
- Changeable
- Lono::SetInstances::Update
- Defined in:
- lib/lono/set_instances/update.rb
Instance Method Summary collapse
Methods inherited from Changeable
#accounts, #initialize, #regions, #run, #validate!
Methods included from Utils::Sure
Methods included from AwsServices
#cfn, #ec2, #iam, #s3, #s3_presigner, #s3_resource, #sts
Methods included from AwsServices::Helper
#rollback_complete?, #testing_update?
Methods included from AwsServices::StackSet
#find_stack_set, #stack_set_exists?
Methods included from AwsServices::Stack
Methods inherited from Base
#accounts, #regions, #requested, #stack_instances
Methods inherited from Lono::Sets::Base
#build_options, #exit_unless_updatable!, #initialize, #operation_preferences, #run
Methods inherited from Cfn::Base
#capabilities, #command_with_iam, #continue_update_rollback, #continue_update_rollback_sure?, #delete_rollback_stack, #exit_unless_updatable!, #generate_all, #notification_arns, #pretty_path, #prompt_for_iam, #quit, #rerun_with_iam?, #run, #set_template_url!, #show_options, #stack_status, #starting_message, #status, #tags
Methods inherited from AbstractBase
#initialize, #reinitialize, #template_path
Methods included from Blueprint::Root
#find_blueprint_root, #set_blueprint_root
Constructor Details
This class inherits a constructor from Lono::SetInstances::Changeable
Instance Method Details
#perform(options) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/lono/set_instances/update.rb', line 3 def perform() cfn.update_stack_instances() rescue Aws::CloudFormation::Errors::StackInstanceNotFoundException => e puts "#{e.class}: #{e.}".color(:red) puts <<~EOL One of the provided stack instance was not found. Unable to update the stack instances unless all stack instances already exist. It may be helpful to check the StackSet console Instances Tab. You can also use the `lono set_instances deploy` command instead. EOL exit 1 end |