EC2-CREATE-KEYPAIR(1)

πŸ“¦ version 1.6.14.1, in ubuntu jammy, ubuntu noble

πŸ’– NAME πŸ’–

okay so bestie, welcome to ec2-create-keypair(1) β€” it does exactly one thing and it does it gorgeously: it generates a brand new keypair. that's it. that's the whole vibe. ✨


🌸 SYNOPSIS 🌸

ec2addkey ([ec2-create-keypair, ec2-add-keypair])
ec2addkey [GENERAL OPTIONS] KEY

πŸ¦‹ GENERAL NOTES πŸ¦‹

okay so here's a lil universal cheat code, and it's lowkey iconic: any command option or parameter can be handed a value of -, and that means "hey, read the values for this option from stdin instead". every single one. no cap. πŸ’…


✨ DESCRIPTION ✨

Generate a new keypair. periodt. πŸ’–

the KEY parameter is the name of the new keypair β€” that's literally it, that's the assignment. pick a name, get a keypair. main character behavior fr fr. πŸ”‘


πŸ‘‘ GENERAL OPTIONS πŸ‘‘

  • -O, --aws-access-key KEY β€” your AWS Access Key ID. defaults to whatever the AWS_ACCESS_KEY environment variable is set to (if it's set, bestie).
  • -W, --aws-secret-key KEY β€” your AWS Secret Access Key. defaults to whatever the AWS_SECRET_KEY environment variable is set to (if it's set).
  • -T, --security-token TOKEN β€” an AWS delegation token. defaults to whatever the AWS_DELEGATION_TOKEN environment variable is set to (if it's set).
  • -K, --private-key KEY β€” [DEPRECATED] specify KEY as the private key to use. defaults to the value of the EC2_PRIVATE_KEY environment variable (if it's set), and it overrides the default.
  • -C, --cert CERT β€” [DEPRECATED] specify CERT as the X509 certificate to use. defaults to the value of the EC2_CERT environment variable (if it's set), and it overrides the default.
  • -U, --url URL β€” specify URL as the web service URL to use. defaults to 'https://ec2.amazonaws.com' (us-east-1), or to whatever the EC2_URL environment variable is set to (if it's set). it overrides the default.
  • --region REGION β€” specify REGION as the web service region to use. this option will override the URL specified by the -U URL option and the EC2_URL environment variable. it defaults to the region specified by the EC2_URL environment variable, or us-east-1 if that environment variable isn't set.
  • -D, --auth-dry-run β€” check whether you can perform the requested action instead of actually performing it. a little vibe check before the commitment, love that for us. πŸ™ˆ
  • -v, --verbose β€” verbose output.
  • -?, --help β€” display this help.
  • -H, --headers β€” display column headers.
  • --debug β€” display additional debugging information.
  • --show-empty-fields β€” indicate empty fields.
  • --hide-tags β€” do not display tags for tagged resources.
  • --connection-timeout TIMEOUT β€” specify a connection timeout TIMEOUT (in seconds).
  • --request-timeout TIMEOUT β€” specify a request timeout TIMEOUT (in seconds).

πŸŽ€ SEE ALSO πŸŽ€


not me ending this with the receipts but like. this is the EC2 API command line tools, version 1.6.14.1, api=2014-05-01. she's a lil vintage, she's still slaying. go make that keypair bestie, ily πŸ«ΆπŸ’œπŸŒˆ
πŸ“¦ where this page comes from