Skip to content

Commit a32b3dd

Browse files
committed
Small deployment README fixes
1 parent af937a9 commit a32b3dd

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

deploy/README.md

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Nix shell with `terraform` and other tools available:
1010
$ nix develop .#deploy
1111
```
1212

13-
The commands in this section all assume you're in this deployment shell, and in
14-
this current `deploy/` directory.
13+
**The commands in this section all assume you're in this deployment shell, and in
14+
this current `deploy/` directory.**
1515

1616
## First Time
1717

@@ -87,7 +87,7 @@ successful.
8787
- Connect to the machine with SSH:
8888

8989
```console
90-
$ ssh root@$(terraform output -raw server_ip_addr)
90+
$ ssh root@$(terraform output -raw public_ip_addr)
9191
```
9292

9393
You should be able to run commands like `ps` or `systemctl` to confirm the
@@ -96,7 +96,7 @@ successful.
9696
- Try accessing the API:
9797

9898
```console
99-
$ curl -v http://$(terraform output -raw server_ip_addr)/vim > vim
99+
$ curl -v http://$(terraform output -raw public_ip_addr)/vim > vim
100100
$ chmod +x ./vim
101101
$ ./vim
102102
```
@@ -111,3 +111,24 @@ resources with the following command:
111111
```console
112112
$ terraform destroy
113113
```
114+
115+
## Using the AWS CLI
116+
117+
It is possible to use the AWS CLI for querying the various AWS services.
118+
119+
You'll first need to authenticate with the AWS CLI:
120+
121+
```console
122+
$ aws configure
123+
AWS Access Key ID [None]: <ENTER ACCESS KEY>
124+
AWS Secret Access Key [None]: <ENTER SECRET ACCESS KEY>
125+
Default region name [None]: us-east-1
126+
Default output format [None]:
127+
```
128+
129+
You should then be able to use the CLI:
130+
131+
```console
132+
$ aws ec2 describe-instances
133+
...
134+
```

0 commit comments

Comments
 (0)