Class: Jets::Cfn::Teardown
- Defined in:
- lib/jets/cfn/teardown.rb,
lib/jets/cfn/teardown/bucket.rb
Defined Under Namespace
Classes: Bucket
Instance Method Summary collapse
Methods inherited from Stack
#check_stack_exist!, #initialize, #stack_name
Methods included from Stack::Deployable
Methods included from Stack::Rollback
#continue_update_rollback!, #delete_rollback_complete!, #rollback_complete?, #update_rollback_failed?
Methods included from Util::Logging
Methods included from AwsServices::AwsHelpers
Methods included from AwsServices
#apigateway, #aws_options, #cfn, #codebuild, #dynamodb, #lambda_client, #logs, #s3, #s3_resource, #sns, #sqs, #ssm, #sts, #wafv2
Methods included from AwsServices::StackStatus
Methods included from AwsServices::GlobalMemoist
Constructor Details
This class inherits a constructor from Jets::Cfn::Stack
Instance Method Details
#remaining_resources ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/jets/cfn/teardown.rb', line 10 def remaining_resources stack_resources = cfn.describe_stack_resources(stack_name: stack_name).stack_resources resources = stack_resources.map(&:logical_resource_id).join(", ") log.debug "Remaining resources: #{resources}" log.debug "Final delete #{Jets.project.namespace.color(:green)}" cfn.delete_stack(stack_name: stack_name) cfn_status = Jets::Cfn::Status.new cfn_status.wait end |