Method: Ufo::S3::Bucket#deploy
- Defined in:
- lib/ufo/s3/bucket.rb
#deploy ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/ufo/s3/bucket.rb', line 13 def deploy stack = find_stack if rollback.complete? logger.info "Existing '#{STACK_NAME}' stack in ROLLBACK_COMPLETE state. Deleting stack before continuing." disable_termination_protection cfn.delete_stack(stack_name: STACK_NAME) status.wait stack = nil end if stack update else create end end |