2020-10-12 23:06:28 +01:00
|
|
|
# aws ec2
|
|
|
|
|
2024-03-04 09:32:50 +00:00
|
|
|
> Manage AWS EC2 instances and volumes.
|
|
|
|
> AWS EC2 provides secure and resizable computing capacity in the AWS cloud for faster development and deployment of applications.
|
2020-10-12 23:06:28 +01:00
|
|
|
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/index.html>.
|
|
|
|
|
|
|
|
- Display information about a specific instance:
|
|
|
|
|
|
|
|
`aws ec2 describe-instances --instance-ids {{instance_id}}`
|
|
|
|
|
|
|
|
- Display information about all instances:
|
|
|
|
|
|
|
|
`aws ec2 describe-instances`
|
|
|
|
|
|
|
|
- Display information about all EC2 volumes:
|
|
|
|
|
|
|
|
`aws ec2 describe-volumes`
|
|
|
|
|
|
|
|
- Delete an EC2 volume:
|
|
|
|
|
|
|
|
`aws ec2 delete-volume --volume-id {{volume_id}}`
|
|
|
|
|
|
|
|
- Create a snapshot from an EC2 volume:
|
|
|
|
|
|
|
|
`aws ec2 create-snapshot --volume-id {{volume_id}}`
|
|
|
|
|
|
|
|
- List available AMIs (Amazon Machine Images):
|
|
|
|
|
|
|
|
`aws ec2 describe-images`
|
2022-08-16 06:14:21 +01:00
|
|
|
|
|
|
|
- Show list of all available EC2 commands:
|
|
|
|
|
|
|
|
`aws ec2 help`
|
|
|
|
|
2023-12-27 06:41:30 +00:00
|
|
|
- Display help for specific EC2 subcommand:
|
2022-08-16 06:14:21 +01:00
|
|
|
|
|
|
|
`aws ec2 {{subcommand}} help`
|