lib/zergrush_cf/init.rb in zergrush_cf-0.0.8 vs lib/zergrush_cf/init.rb in zergrush_cf-0.0.9
- old
+ new
@@ -85,11 +85,15 @@
end
end
cf = Fog::AWS::CloudFormation.new(
:aws_access_key_id => aws_key_id,
- :aws_secret_access_key => aws_secret
+ :aws_secret_access_key => aws_secret,
+ :connection_options => {
+ :connect_timeout => 700,
+ :read_timeout => 700
+ }
)
# create the cloudformation stack
stack_name = "#{task_name}"
@@ -168,10 +172,14 @@
# run fog cleanup on the stack.
stack_name = "#{task_name}"
cf = Fog::AWS::CloudFormation.new(
:aws_access_key_id => aws_key_id,
- :aws_secret_access_key => aws_secret
+ :aws_secret_access_key => aws_secret,
+ :connection_options => {
+ :connect_timeout => 700,
+ :read_timeout => 700
+ }
)
stack_info = cf.delete_stack(stack_name)
puts("Deleting stack #{stack_name}")