使用 aws cli

关于 aws cli 的最好的部分是你可以将命令嵌入到脚本中并根据某些标准触发它们。与生产中的自动部署(在 Elastic Beanstalk 中)一样,无需转到 AWS 控制台进行选择和部署。
你将通过运行获得所有可用命令:

# This will give all the available commands
aws help

你甚至可以走得更远,比如:

# This will give all the available options for ec2
aws ec2 help

并进一步

# This will output all the operations you can do with ec2 instances
aws ec2 describe-instances help 

你可以使用 aws cli 列出/操作所有 aws 资源(S3,EC2,EBS,RDS 等)。这是完整的文档