Hello everyone,
I am trying to create one EC2 instance from command line. But it shows me the below error.
C:\Users\NADIM AKTHAR>aws ec2 run-instances --image-id ami-0447a12f28fddb066 --instance-type t2.micro --count 1 --subnet-id subnet-51167d1d --key-name key123.pem
An error occurred (InvalidKeyPair.NotFound) when calling the RunInstances operation: The key pair 'key123.pem' does not exist
How can I solve this error?