From bb121c445a0bb18cd44911916451f3a621ad53d5 Mon Sep 17 00:00:00 2001 From: Bert Kellerman Date: Wed, 22 Jan 2020 07:50:00 -0800 Subject: [PATCH 1/2] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index d2dfe82..e239448 100644 --- a/README.md +++ b/README.md @@ -639,3 +639,8 @@ ssh -i ec2-user@ vim ``` 5. In the AWS EC2, select the newly created EC2 instance and terminate the instance. + +## The AWS CLI Wau +``` +!aws --region `ec2-metadata --availability-zone | sed 's/placement: \(.*\).$/\1/'` ec2 stop-instances --instance-ids `wget -q -O - http://169.254.169.254/latest/meta-data/instance-id` +``` From a43ed82cb03325fc4f21bdb8a6c5fa33f4cf632e Mon Sep 17 00:00:00 2001 From: Bert Kellerman Date: Wed, 22 Jan 2020 07:50:24 -0800 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e239448..b1d1148 100644 --- a/README.md +++ b/README.md @@ -640,7 +640,7 @@ vim ``` 5. In the AWS EC2, select the newly created EC2 instance and terminate the instance. -## The AWS CLI Wau +## The AWS CLI Way ``` !aws --region `ec2-metadata --availability-zone | sed 's/placement: \(.*\).$/\1/'` ec2 stop-instances --instance-ids `wget -q -O - http://169.254.169.254/latest/meta-data/instance-id` ```