Have you considered AWS Cloud Shell? It's free, has AWS CLI pre-installed, and after the initial launch I think it opens quite quickly.
Your question doesn't say what you're trying to achieve, just how you're trying to achieve it, so it's difficult to know for sure if this is going to help.
I don't think so, most of the dependencies are used by most of the AWS CLI commands I'd suspect so installing a trimmed down version won't really help much.
But you can either:
Use an AMI that comes with AWS CLI already installed - e.g. Amazon Linux 2
Create your own AMI with AWS CLI installed and use that as your base image - simply spin up an instance ...
In the <output.json> field, you should write uploaded file name. if the uploaded file name you want retrive, is a: backup.zip, you should run your command like this:
aws glacier get-job-output --account-id - --vault-name <example-vault-name> --job-id <job-id> backup.zip
at the end, the backup.zip in your system. you can verify the ...
CreateImage now supports resource level policies. The following policy allows creating an image but only for the specified instance id: