Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #13 from kickstarter/ec2-instance-connect-retry-ba…
Browse files Browse the repository at this point in the history
…ckoff

Add retry+backoff to AWS
  • Loading branch information
amancevice authored Nov 22, 2022
2 parents 9a3fc8a + db7a608 commit af6b2eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/capistrano/hivequeen/ec2_instance_connect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ def self.ec2_client
end

def self.ec2_instance_connect_client
@ec2_instance_connect_client ||= Aws::EC2InstanceConnect::Client.new
@ec2_instance_connect_client ||= Aws::EC2InstanceConnect::Client.new(
retry_limit: 5,
retry_backoff: -> (c) { sleep(5) },
)
end

def self.ec2_instance_connect(*private_dns)
Expand Down
2 changes: 1 addition & 1 deletion lib/capistrano/hivequeen/version.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class HiveQueen
class Version
@@version = '7.7.1'
@@version = '7.7.2'

def self.to_s
@@version
Expand Down

0 comments on commit af6b2eb

Please sign in to comment.