aws ec2

EC2 instances and networking

high risk

interactive breakdown — edit the command and press Explain
$ 
⚠ Risks & cautions
Safer / dry-run alternatives
aws ec2 <action> --dry-runValidate permissions without acting
aws ec2 create-snapshot --volume-id <vol>Snapshot before destructive changes
What it does

Manage instances, volumes, security groups and AMIs.

Common flags
FlagMeaning
describe-instancesList instances
stop-instancesStop
terminate-instancesDelete⚠ Irreversible; root EBS volumes are deleted by default.
authorize-security-group-ingressOpen a port⚠ 0.0.0.0/0 exposes the service to the Internet.
--dry-run --dry-runCheck permissions without acting
Examples
aws ec2 describe-instances --filters Name=tag:Env,Values=prodProd instances · explain & risk-check →
aws ec2 stop-instances --instance-ids i-123 --dry-runDry run · explain & risk-check →
Related
aws
Open the full explainer →More in AWS, Azure & GCP CLIs

Reference text is hand-written and may be incomplete — check man aws for your version. Test destructive commands on a non-production system first.