Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use AWS CLI v2 #81

Merged
merged 1 commit into from
Jan 25, 2021
Merged

Use AWS CLI v2 #81

merged 1 commit into from
Jan 25, 2021

Conversation

taylor-sutton
Copy link
Contributor

@taylor-sutton taylor-sutton commented Jan 24, 2021

JIRA: https://clever.atlassian.net/browse/INFRANG-4330

Following instructions to install at https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html

As far as I can tell, none of the v2 breaking changes are relevant to how we use AWS CLI in CircleCI except the docker login one, which is changed here.

Doing it this way removes any dependency on pip and python in this stack, which is actually great because the newest version of pip (the one that's installed by that wget get-pip.py) dropped support for Python 2, and was causing errors. We could switch the line that installs Python to install Python 3 instead, but this seemed like a good place to switch to the new CLI, which is faster to install anyway.

As a sanity check I ran CI with this branch of ci-scripts for both a lambda and oauth. I picked oauth because, besides being something that uses the docker-publish script that I changed, it also has some custom S3 stuff for uploading assets.

Without some change (either fixing the python 3 thing or switching to v2) we get these errors in CI when installing.

@taylor-sutton taylor-sutton requested a review from a team as a code owner January 24, 2021 05:49
@taylor-sutton taylor-sutton requested review from rgarcia and removed request for a team January 24, 2021 05:49
@taylor-sutton taylor-sutton merged commit 299b501 into master Jan 25, 2021
@ghirsch1 ghirsch1 deleted the aws-cli-v2 branch January 25, 2021 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants