Merge pull request #162 from ccw630/master

The Matryoshka Way
This commit is contained in:
Luke Stephens (hakluke) 2020-02-05 01:28:17 +10:00 committed by GitHub
commit 64c446db5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -648,6 +648,12 @@ vim
```
5. In the AWS EC2, select the newly created EC2 instance and terminate the instance.
## The Matryoshka Way
Credit: @ccw630
```vim
:!$SHELL
## 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`