snippetbashTip
aws ec2 — Manage AWS EC2 instances and volumes. AWS EC2 provides secure and resizable computing capacity in th
Viewed 0 times
commandinstancesandclimanageec2aws ec2aws
Problem
How to use the
aws ec2 command: 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. More information: <https://docs.aws.amazon.com/cli/latest/reference/ec2/>.Solution
aws ec2 — 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. More information: <https://docs.aws.amazon.com/cli/latest/reference/ec2/>.Display information about a specific instance:
aws ec2 describe-instances --instance-ids {{instance_id}}Display information about all instances:
aws ec2 describe-instancesDisplay information about all EC2 volumes:
aws ec2 describe-volumesDelete 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-imagesShow list of all available EC2 commands:
aws ec2 helpDisplay help for specific EC2 subcommand:
aws ec2 {{subcommand}} helpCode Snippets
Display information about a specific instance
aws ec2 describe-instances --instance-ids {{instance_id}}Display information about all instances
aws ec2 describe-instancesDisplay information about all EC2 volumes
aws ec2 describe-volumesDelete 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}}Context
tldr-pages: common/aws ec2
Revisions (0)
No revisions yet.