lib/cfer/cfn/client.rb in cfer-0.5.0.pre.rc1 vs lib/cfer/cfn/client.rb in cfer-0.5.0.pre.rc2
- old
+ new
@@ -22,21 +22,10 @@
rescue Aws::CloudFormation::Errors::AlreadyExistsException
raise Cfer::Util::StackExistsError
end
end
-
- def delete_stack(stack_name)
- begin
- @cfn.delete_stack({
- stack_name: stack_name, # required
- })
- rescue Aws::CloudFormation::Errors
- raise CferError, "Stack delete #{stack_name}"
- end
- end
-
def responds_to?(method)
@cfn.responds_to? method
end
def method_missing(method, *args, &block)
@@ -194,9 +183,12 @@
if yielding
q.unshift fetched_event
end
end
+ rescue Aws::CloudFormation::Errors::Throttling
+ Cfer::LOGGER.debug "AWS SDK is being throttled..."
+ # Keep going though.
rescue Aws::CloudFormation::Errors::ValidationError
running = false
end
while q.size > 0