From 8c80579abe71843328037a88ffebfb9dbb6080a4 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 28 Oct 2024 15:07:31 +0000 Subject: [PATCH] Use the AWS CLI without installing it --- .../aws-cli-without-installing.md | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 docs/notes/infrastructure/aws-cli-without-installing.md diff --git a/docs/notes/infrastructure/aws-cli-without-installing.md b/docs/notes/infrastructure/aws-cli-without-installing.md new file mode 100644 index 0000000..bc4e593 --- /dev/null +++ b/docs/notes/infrastructure/aws-cli-without-installing.md @@ -0,0 +1,30 @@ +--- +title: Using the AWS CLI without installing it +tags: + - AWS +sources: + - https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html +--- + +The official AWS CLI installation steps require downloading and running a script to install the CLI. This download contains the CLI itself, and the install script simply copies it to the right places. + +However, especially for one-off uses, it's quite convenient to not run it at all, and run it as-is: + +1\. Download the CLI: + +```bash +curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" +unzip awscliv2.zip +``` + +2\. Make the CLI itself executable: + +```bash +chmod +x ./aws/dist/aws +``` + +3\. Run the CLI: + +```bash +./aws/dist/aws help +```