Skip to main content

AWS EC2

19 commands. Toolkit id ooa.aws_ec2.

CommandWhat it does
Attach volumeAttach an available volume to an instance in the same availability zone, as a device name.
ConnectOpen a session for one AWS region with an access key from the vault; later EC2 steps use it.
Create snapshotStart a point-in-time copy (snapshot) of an EBS volume; AWS finishes it in the background.
Create volumeCreate an EBS volume in an availability zone, empty or restored from a snapshot.
Delete snapshotDelete a snapshot for good. AWS refuses while a machine image (AMI) still uses it.
Describe instancesList instances with their state, type, addresses and tags: all of them, the ones you name, or those that match filters.
Detach volumeDetach a volume from its instance. Unmount it on the instance first; force only for a volume that will not detach.
Disable monitoringGo back to basic (five-minute) monitoring for instances.
DisconnectClose the EC2 session and forget its keys.
Enable monitoringSwitch on detailed (one-minute) CloudWatch monitoring for instances.
Get instance statusRead each instance's state and the results of AWS's system and instance health checks.
Launch instancesCreate new instances from a machine image, with a name, tags and a start-up script.
List snapshotsList snapshots owned by this account (or another owner), optionally only those of one volume or with certain tags.
Reboot instancesRestart running instances.
Set tagsAdd tags to instances, or change the values of tags they already have.
Start instancesStart stopped instances; optionally wait until they are running.
Stop instancesStop running instances; their disks are kept. Optionally hibernate them or force the stop, and wait until they are stopped.
Terminate instancesEnd instances for good; disks marked to be deleted on end are deleted too. This cannot be undone.
Wait for stateWait until every instance named is in a state, e.g. running after a start or stopped after a stop.