LinuxCommandLibrary

aws-ec2

CLI for AWS EC2.

TLDR

Display information about a specific instance

$ aws ec2 describe-instances --instance-ids [instance_id]
copy


Display information about all instances
$ aws ec2 describe-instances
copy


Display information about all EC2 volumes
$ aws ec2 describe-volumes
copy


Delete an EC2 volume
$ aws ec2 delete-volume --volume-id [volume_id]
copy


Create a snapshot from an EC2 volume
$ aws ec2 create-snapshot --volume-id [volume_id]
copy


List available AMIs (Amazon Machine Images)
$ aws ec2 describe-images
copy


Show list of all available EC2 commands
$ aws ec2 help
copy


Show help for specific EC2 subcommand
$ aws ec2 [subcommand] help
copy

Copied to clipboard