Practice basic lifecycle operations for an EC2 instance using AWS CLI.
Understand the most common EC2 control actions used in everyday operations.
Review instance metadata in the current region before making changes.
Command
aws ec2 describe-instancesExpected Result
You should see information about EC2 instances in the selected region.
Bring a test instance online.
Command
aws ec2 start-instances --instance-ids <id>Expected Result
AWS should report that the instance is starting.
Perform a reboot to simulate a simple recovery action.
Command
aws ec2 reboot-instances --instance-ids <id>Expected Result
AWS should accept the reboot request successfully.
Shut down the instance to save cost when it is no longer needed.
Command
aws ec2 stop-instances --instance-ids <id>Expected Result
AWS should report that the instance is stopping.
Inspect firewall rules associated with instances in the region.
Command
aws ec2 describe-security-groupsExpected Result
You should see one or more security groups and their rules.
You can perform basic EC2 operational tasks from the CLI.
You understand how instance state changes and security groups fit into routine AWS operations.