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

Added "--update" parameter #1205

Merged
merged 1 commit into from
Mar 8, 2023
Merged

Conversation

joseeden
Copy link
Contributor

Issue #, if available:
Script ran into an issue when it finds that AWS CLI is pre-installed onto the EC2 instance. Adding the "--update" parameter solves this.

Description of changes:
Adding the "--update" parameter to AWS CLI installation step.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Testing Done

See this guide for recommended testing for PRs. Some tests may not apply. Completing tests and providing additional validation steps are not required, but it is recommended and may reduce review time and time to merge.

Script ran into an issue when it finds that AWS CLI is pre-installed onto the EC2 instance. Adding the "--update" parameter solves this.
@cartermckinnon
Copy link
Member

LGTM.

If there's no existing install:

> sudo ./aws/install --update
You can now run: /usr/local/bin/aws --version

If there's an existing install of the same version:

> sudo ./aws/install --update
Found same AWS CLI version: /usr/local/aws-cli/v2/2.11.0. Skipping install.
> echo $?
0

If there's an existing install of a different version (newer or older):

> sudo ./aws/install --update
You can now run: /usr/local/bin/aws --version

@cartermckinnon cartermckinnon merged commit afea191 into awslabs:master Mar 8, 2023
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