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

Query awscliv2 version #6737

Closed
3 of 5 tasks
MrAtheist opened this issue Feb 21, 2022 · 3 comments
Closed
3 of 5 tasks

Query awscliv2 version #6737

MrAtheist opened this issue Feb 21, 2022 · 3 comments
Assignees
Labels
guidance Question that needs advice or information. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Comments

@MrAtheist
Copy link

Confirm by changing [ ] to [x] below:

Issue is about usage on:

  • Service API : I want to do X using Y service, what should I do?
  • CLI : passing arguments or cli configurations.
  • Other/Not sure.

Platform/OS/Hardware/Device
What are you running the cli on?

  • doesnt matter

Describe the question

Building on top of this thread, i would like a programmatic way to query the cli version provided by https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip (even though im guessing it's supposed to be the latest...) to build out a docker tag. Is there such an API for this?

Logs/output
Get full traceback and error logs by adding --debug to the command.

@MrAtheist MrAtheist added guidance Question that needs advice or information. needs-triage This issue or PR still needs to be triaged. labels Feb 21, 2022
@kdaily kdaily removed the needs-triage This issue or PR still needs to be triaged. label Feb 21, 2022
@kdaily kdaily self-assigned this Feb 21, 2022
@kdaily
Copy link
Member

kdaily commented Feb 21, 2022

Hi @MrAtheist,

Thanks for the post. The methods to determine the version are either use aws --version after the CLI is installed, or check the available or latest tags on the GitHub repository, and use it to download a specific artifact by appending the version number to the file name, like https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.4.1.zip.

There's an open feature request at #5471 to be able to use the GitHub latest release feature to query for the most recently published tag or release, which would allow you to get the version.

We also publish our own Dockerfile for the AWS CLI v2 that you could build off of:

https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-docker.html

If you're building your own container image, you might be interested in the source distribution for AWS CLI v2 as well, work is ongoing for this:

#6352

@kdaily kdaily added the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Feb 21, 2022
@MrAtheist
Copy link
Author

Format like https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.4.1.zip works for me, or maybe i can query from
https://api.github.com/repos/aws/aws-cli/tags to grab the latest tag as mentioned in #5471

Closing this in favor of #5471

@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
guidance Question that needs advice or information. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Projects
None yet
Development

No branches or pull requests

2 participants