How to do it...

Run the following AWS CLI command, using your own key-pair name:

      aws ec2 run-instances \        --image-id ami-9be6f38c \        --instance-type t2.micro \        --key-name <your-key-pair-name>

Get AWS Administration Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.