markdown 用于搜索AMI的有用命令
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 用于搜索AMI的有用命令相关的知识,希望对你有一定的参考价值。
# AWS CLI commands to search for AMI's
## Windows
list of all English Win2016 AMI's...
```bash
aws ec2 describe-images --owners amazon --filters "Name=name,Values=Windows_Server-2016-English-*"
```
list of all English Win2016 AMI's...save to text file
```bash
aws ec2 describe-images --owners amazon --filters "Name=name,Values=Windows_Server-2016-English-*" > win2016-amis.json
```
Formatted list of all English Win2016 AMI's using jq...
```bash
aws ec2 describe-images --owners amazon --filters "Name=name,Values=Windows_Server-2016-English-*" | jq '[.Images[] | {ImageId: .ImageId, Name: .Name, ImageLocation: .ImageLocation, Description: .Description}]'
```
Formatted list of all English Win2016 AMI's using jq...save to text file
```
aws ec2 describe-images --owners amazon --filters "Name=name,Values=Windows_Server-2016-English-*" | jq '[.Images[] | {ImageId: .ImageId, Name: .Name, ImageLocation: .ImageLocation, Description: .Description}]' > win2016-amis.json
```
Formatted list of core Win2016 AMI's using jq...
```bash
aws ec2 describe-images --owners amazon --filters "Name=name,Values=Windows_Server-2016-English-Core-base*" | jq '[.Images[] | {ImageId: .ImageId, Name: .Name, ImageLocation: .ImageLocation, Description: .Description}]'
```
Formatted list of core Win2016 AMI's using jq...save to text file
```
aws ec2 describe-images --owners amazon --filters "Name=name,Values=Windows_Server-2016-English-Core-base*" | jq '[.Images[] | {ImageId: .ImageId, Name: .Name, ImageLocation: .ImageLocation, Description: .Description}]' > win2016-amis.json
```
## Linux
以上是关于markdown 用于搜索AMI的有用命令的主要内容,如果未能解决你的问题,请参考以下文章
markdown 用于处理请求的有用命令
markdown DOS有用的命令
markdown git有用的命令
markdown 有用的命令
markdown 有用的linux命令
markdown Git有用的命令