Skip to content

Commit 8c80579

Browse files
committed
Use the AWS CLI without installing it
1 parent 603abd8 commit 8c80579

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: Using the AWS CLI without installing it
3+
tags:
4+
- AWS
5+
sources:
6+
- https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
7+
---
8+
9+
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.
10+
11+
However, especially for one-off uses, it's quite convenient to not run it at all, and run it as-is:
12+
13+
1\. Download the CLI:
14+
15+
```bash
16+
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
17+
unzip awscliv2.zip
18+
```
19+
20+
2\. Make the CLI itself executable:
21+
22+
```bash
23+
chmod +x ./aws/dist/aws
24+
```
25+
26+
3\. Run the CLI:
27+
28+
```bash
29+
./aws/dist/aws help
30+
```

0 commit comments

Comments
 (0)