aliases | category | classification | date | date_modified | draft | id | image | links | local_archive_links | pinned | series | tags | title | type | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
aws |
public |
2020-08-26 08:25:49 -0700 |
2020-08-26 08:25:49 -0700 |
false |
20200826152549 |
false |
false |
|
Manage EC2 KeyPairs with the AWS CLI |
tech-note |
The below will create a keypair and save it to your SSH folder.
aws ec2 create-key-pair --profile "<profile>" --region "<region>" --query "KeyMaterial" --output "text" --key-name "<key_name>" > ~/.ssh/<key_name>
aws ec2 create-key-pair --profile "<profile>" --region "<region>" --key-name "<key_name>"