aws ec2 create-key-pair
Jump to navigation
Jump to search
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/create-key-pair.html
aws ec2 create-key-pair
aws ec2 create-key-pair --key-name YOUR_KEY_NAME | jq -r .KeyMaterial > my_new_key.pem
Run a new instance with your new key
aws ec2 run-instances .../... --key-name YOUR_KEY_NAME
Related terms[edit]
aws ec2 describe-key-pairs
aws ec2 delete-key-pair
- KeyName
ssh-keygen
aws ec2 run-instances
aws_key_pair
See also[edit]
Advertising: