aws-ec2
Manage virtual servers and networking on Amazon EC2.
TLDR
Launch a new EC2 instance
SYNOPSIS
aws ec2 command [options]
DESCRIPTION
aws ec2 is the AWS CLI interface for Amazon Elastic Compute Cloud (EC2), providing programmatic access to scalable compute capacity. EC2 enables launching virtual servers, configuring networking and security, and managing storage.
EC2 commands cover instance lifecycle management, Amazon Machine Images (AMIs), Elastic Block Store (EBS) volumes, VPC networking, security groups, and key pairs. The service supports on-demand, reserved, and spot pricing models.
COMMANDS
run-instances
Launch new EC2 instancesdescribe-instances
List and describe instancesstart-instances
Start stopped instancesstop-instances
Stop running instancesterminate-instances
Permanently delete instancescreate-image
Create an AMI from an instancecreate-security-group
Create a security groupauthorize-security-group-ingress
Add inbound rules to security groupcreate-key-pair
Generate a new key paircreate-vpc
Create a Virtual Private Cloudcreate-volume
Create an EBS volumeattach-volume
Attach volume to an instance
CAVEATS
Instances continue incurring charges until terminated (not just stopped) for EBS-backed instances. Security group rules are stateful but NACLs are not. Instance metadata service (IMDS) v1 is insecure; use IMDSv2. Spot instances can be terminated with 2 minutes notice.
HISTORY
Amazon EC2 launched in August 2006 as one of AWS's first services, revolutionizing cloud computing. VPC became mandatory in 2013. The service has continuously expanded instance types, from the original m1.small to hundreds of specialized types for compute, memory, GPU, and storage optimization.
SEE ALSO
aws(1), aws-autoscaling(1), aws-elb(1), aws-vpc(1)
