Skip to content

Commit

Permalink
add an exec block to install-cwlogs to ensure latest version of pip
Browse files Browse the repository at this point in the history
A combination of a few python packaging/installing tool issues has led
to the cloudwatch logs agent install process breaking. A bit of detail
here:
pypa/virtualenv#1630 (comment)
  • Loading branch information
lbjay committed Mar 12, 2020
1 parent 80bc0eb commit 7b1db0a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
cred: <the old oauth2, ask the dev team>,
helix_sheet_id: <the Helix Googledoc spreadsheet id of choice>
}
* MI-183 `install-cwlogs` recipe needs to install latest version of pip

## v2.13.0 - 1/21/2020

Expand Down
7 changes: 7 additions & 0 deletions recipes/install-cwlogs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@
mode '0755'
end

execute 'Upgrade to latest pip' do
command %Q|pip install --ignore-installed six -U pip virtualenv|
retries 5
retry_delay 15
timeout 300
end

execute 'Install CloudWatch Logs agent' do
command %Q|/opt/aws/cloudwatch/awslogs-agent-setup.py -n -r #{region} -c /tmp/cwlogs.conf|
retries 2
Expand Down

0 comments on commit 7b1db0a

Please sign in to comment.