mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-05-01 19:26:41 +02:00
commit
64c446db5c
1 changed files with 6 additions and 0 deletions
|
@ -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`
|
||||
|
|
Loading…
Add table
Reference in a new issue