From a32b3dd0c51948b3a6903cd12adc1d4d4d52d116 Mon Sep 17 00:00:00 2001 From: Dennis Gosnell Date: Sun, 2 Oct 2022 18:18:07 -0400 Subject: [PATCH] Small deployment README fixes --- deploy/README.md | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/deploy/README.md b/deploy/README.md index db1a811..b4c8833 100644 --- a/deploy/README.md +++ b/deploy/README.md @@ -10,8 +10,8 @@ Nix shell with `terraform` and other tools available: $ nix develop .#deploy ``` -The commands in this section all assume you're in this deployment shell, and in -this current `deploy/` directory. +**The commands in this section all assume you're in this deployment shell, and in +this current `deploy/` directory.** ## First Time @@ -87,7 +87,7 @@ successful. - Connect to the machine with SSH: ```console - $ ssh root@$(terraform output -raw server_ip_addr) + $ ssh root@$(terraform output -raw public_ip_addr) ``` You should be able to run commands like `ps` or `systemctl` to confirm the @@ -96,7 +96,7 @@ successful. - Try accessing the API: ```console - $ curl -v http://$(terraform output -raw server_ip_addr)/vim > vim + $ curl -v http://$(terraform output -raw public_ip_addr)/vim > vim $ chmod +x ./vim $ ./vim ``` @@ -111,3 +111,24 @@ resources with the following command: ```console $ terraform destroy ``` + +## Using the AWS CLI + +It is possible to use the AWS CLI for querying the various AWS services. + +You'll first need to authenticate with the AWS CLI: + +```console +$ aws configure +AWS Access Key ID [None]: +AWS Secret Access Key [None]: +Default region name [None]: us-east-1 +Default output format [None]: +``` + +You should then be able to use the CLI: + +```console +$ aws ec2 describe-instances +... +```