Skip to content

Commit 247c7e8

Browse files
authored
Merge pull request #344 from aws/aws/1.4.1-release
Aws/1.4.1 release
2 parents 1a53e8f + d2b099d commit 247c7e8

File tree

6 files changed

+385
-9
lines changed

6 files changed

+385
-9
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ group :test do
1414
gem 'coveralls_reborn', require: false
1515
gem 'cucumber'
1616
gem 'fakefs', :require => 'fakefs/safe'
17-
gem 'mocha'
17+
gem 'mocha', "0.13.3"
1818
gem 'rspec'
1919
gem 'webmock', :require => 'webmock/rspec'
2020
gem 'shoulda'

codedeploy_agent.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |spec|
22
spec.name = 'aws_codedeploy_agent'
3-
spec.version = '1.4.0'
3+
spec.version = '1.4.1'
44
spec.summary = 'Packages AWS CodeDeploy agent libraries'
55
spec.description = 'AWS CodeDeploy agent is responsible for doing the actual work of deploying software on an individual EC2 instance'
66
spec.author = 'Amazon Web Services'

lib/instance_agent/plugins/codedeploy/command_executor.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,6 @@ def download_from_s3(deployment_spec, bucket, key, version, etag)
304304
log(:info, "Downloading artifact bundle from bucket '#{bucket}' and key '#{key}', version '#{version}', etag '#{etag}'")
305305
options = s3_options()
306306
s3 = Aws::S3::Client.new(options)
307-
ProcessManager::Log.info("s3 client configuration below:")
308-
ProcessManager::Log.info(s3.config)
309307

310308
File.open(artifact_bundle(deployment_spec), 'wb') do |file|
311309

@@ -346,10 +344,10 @@ def s3_options
346344
options[:region] = region
347345

348346
if !InstanceAgent::Config.config[:s3_endpoint_override].to_s.empty?
349-
ProcessManager::Log.info("using s3 override endpoint #{InstanceAgent::Config.config[:s3_endpoint_override]}")
347+
ProcessManager::Log.debug("using s3 override endpoint #{InstanceAgent::Config.config[:s3_endpoint_override]}")
350348
options[:endpoint] = URI(InstanceAgent::Config.config[:s3_endpoint_override])
351349
elsif InstanceAgent::Config.config[:use_fips_mode]
352-
ProcessManager::Log.info("using fips endpoint")
350+
ProcessManager::Log.debug("using fips endpoint")
353351
# There was a recent change to S3 client to decompose the region and use a FIPS endpoint is "fips-" is appended
354352
# to the region. However, this is such a recent change that we cannot rely on the latest version of the SDK to be loaded.
355353
# For now, the endpoint will be set directly if FIPS is active but can switch to the S3 method once we have broader support.

lib/instance_agent/plugins/codedeploy/command_poller.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,12 @@ def process_command(command, spec)
143143
private
144144
def next_command
145145
log(:debug, "Calling PollHostCommand:")
146-
output = @deploy_control_client.poll_host_command(:host_identifier => @host_identifier)
146+
begin
147+
output = @deploy_control_client.poll_host_command(:host_identifier => @host_identifier)
148+
rescue Exception => e
149+
log(:error, "Error polling for host commands: #{e.class} - #{e.message} - #{e.backtrace.join("\n")}")
150+
raise e
151+
end
147152
command = output.host_command
148153
if command.nil?
149154
log(:debug, "PollHostCommand: Host Command = nil")

0 commit comments

Comments
 (0)