EC2-ADD-KEYPAIR(1)

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

🌸 EC2-ADD-KEYPAIR πŸ’…

okay bestie, so this is EC2-ADD-KEYPAIR(1) β€” yes the manual page name is right there in the title, she's a User Commands girlie and she's about to hand you a brand new keypair. slay. πŸŽ€


✨ NAME ✨

ec2-add-keypair β€” Generate a new keypair. that's it, that's the whole job, and she does it flawlessly. πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

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

πŸ’– GENERAL NOTES πŸ’–

okay so this is lowkey the most useful little hack here: any command option or parameter can be handed a value of - and that means "bestie, read the values for that option from stdin instead." ✨


🌈 DESCRIPTION 🌈

Generate a new keypair. periodt.

The KEY parameter is the name of the new keypair β€” like, you're naming your baby. pick something cute. 🍼


πŸ‘‘ GENERAL OPTIONS πŸ‘‘

every single one, no gatekeeping, here we go:

  • -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 the value of the AWS_SECRET_KEY environment variable (if set). 🀫
  • -T, --security-token TOKEN β€” AWS delegation token. defaults to the value of the AWS_DELEGATION_TOKEN environment variable (if 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 set). it overrides the default. πŸ’€ (yes she said deprecated, tread carefully)
  • -C, --cert CERT β€” [DEPRECATED] specify CERT as the X509 certificate to use. defaults to the value of the EC2_CERT environment variable (if set). it overrides the default. also deprecated, also πŸ’€
  • -U, --url URL β€” specify URL as the web service URL to use. defaults to https://ec2.amazonaws.com (that's us-east-1) or to whatever the EC2_URL environment variable says (if set). it overrides the default.
  • --region REGION β€” specify REGION as the web service region to use. this option will override the URL you gave with the -U URL option and the EC2_URL environment variable. (she's bossy like that, respect it.) this option 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 if you can do the requested action instead of actually doing it. like a vibe check but for permissions. πŸ”₯
  • -v, --verbose β€” verbose output. she will not shut up and honestly? iconic.
  • -?, --help β€” display this help. hi, you're here.
  • -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 🧚


and that's the whole page, bestie 🫢 this gorgeous thing is brought to you by the EC2 API command line tools, version 1.6.14.1, api=2014-05-01 β€” so if you're reading this, mwah, that's the version and the date, go off, generate that keypair, and have the day you deserve. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from