@@ -10,8 +10,8 @@ Nix shell with `terraform` and other tools available:
10
10
$ nix develop .# deploy
11
11
```
12
12
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.**
15
15
16
16
## First Time
17
17
@@ -87,7 +87,7 @@ successful.
87
87
- Connect to the machine with SSH:
88
88
89
89
```console
90
- $ ssh root@$(terraform output -raw server_ip_addr )
90
+ $ ssh root@$(terraform output -raw public_ip_addr )
91
91
```
92
92
93
93
You should be able to run commands like `ps` or `systemctl` to confirm the
@@ -96,7 +96,7 @@ successful.
96
96
- Try accessing the API:
97
97
98
98
```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
100
100
$ chmod +x ./vim
101
101
$ ./vim
102
102
```
@@ -111,3 +111,24 @@ resources with the following command:
111
111
```console
112
112
$ terraform destroy
113
113
```
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