API call to get latest version #7781
-
On other AWS services (e.g. codedeploy, ssm, etc), there's a api that you can call to retrieve the latest version of the agent. This way, you make the call and then determine if you need to update the agent. Is there a similar call that I can use something like cURL to determine the latest release? For example, you can make this call to get latest version of SSM |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi @NothinRandom, thanks for reaching out. I don't believe AWS CLI supports that behavior specifically. However, if you are just interested in being able to get the most recent version with a single cURL command, you could use the changelog (https://raw.githubusercontent.com/aws/aws-cli/v2/CHANGELOG.rst) and use cURL to just read the version of the most recent entry in the changelog. That command would look something like |
Beta Was this translation helpful? Give feedback.
-
Hey Ryan, Thanks for your reply! Ah ok, this is what I am currently doing, but it doesn't feel right; thus, I asked here as I haven't found a better way to determine latest version like the other AWS agents. It does provide what I need, but something a tad more "official" feels right. It would be great if the AWS cli team can make this a feature in their later builds. I guess I'm going to close for now since there isn't a better way to determine latest version. |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Hi @NothinRandom, thanks for reaching out. I don't believe AWS CLI supports that behavior specifically. However, if you are just interested in being able to get the most recent version with a single cURL command, you could use the changelog (https://raw.githubusercontent.com/aws/aws-cli/v2/CHANGELOG.rst) and use cURL to just read the version of the most recent entry in the changelog. That command would look something like
curl https://raw.githubusercontent.com/aws/aws-cli/v2/CHANGELOG.rst --range 30-43
. Is that close enough to what you're looking for?