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>
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>