EC2-ADD-KEYPAIR(1)
πΈ 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 theAWS_ACCESS_KEYenvironment variable is set to (if it's set, bestie).-W,--aws-secret-key KEYβ your AWS Secret Access Key. defaults to the value of theAWS_SECRET_KEYenvironment variable (if set). π€«-T,--security-token TOKENβ AWS delegation token. defaults to the value of theAWS_DELEGATION_TOKENenvironment variable (if set).-K,--private-key KEYβ [DEPRECATED] specifyKEYas the private key to use. defaults to the value of theEC2_PRIVATE_KEYenvironment variable (if set). it overrides the default. π (yes she said deprecated, tread carefully)-C,--cert CERTβ [DEPRECATED] specifyCERTas the X509 certificate to use. defaults to the value of theEC2_CERTenvironment variable (if set). it overrides the default. also deprecated, also π-U,--url URLβ specifyURLas the web service URL to use. defaults tohttps://ec2.amazonaws.com(that's us-east-1) or to whatever theEC2_URLenvironment variable says (if set). it overrides the default.--region REGIONβ specifyREGIONas the web service region to use. this option will override the URL you gave with the-U URLoption and theEC2_URLenvironment variable. (she's bossy like that, respect it.) this option defaults to the region specified by theEC2_URLenvironment variable, orus-east-1if 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 timeoutTIMEOUT(in seconds).--request-timeout TIMEOUTβ specify a request timeoutTIMEOUT(in seconds).
π§ SEE ALSO π§
http://docs.amazonwebservices.com/AWSEC2/2014-05-01/CommandLineReferencehttp://docs.amazonwebservices.com/AWSEC2/latest/CommandLineReference
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
- ubuntu jammy: ec2-api-tools 1.6.14.1-0ubuntu1
- ubuntu noble: ec2-api-tools 1.6.14.1-0ubuntu2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms