EC2-CREATE-KEYPAIR(1)
π 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 theAWS_ACCESS_KEYenvironment variable is set to (if it's set, bestie).-W,--aws-secret-key KEYβ your AWS Secret Access Key. defaults to whatever theAWS_SECRET_KEYenvironment variable is set to (if it's set).-T,--security-token TOKENβ an AWS delegation token. defaults to whatever theAWS_DELEGATION_TOKENenvironment variable is set to (if it's set).-K,--private-key KEYβ [DEPRECATED] specifyKEYas the private key to use. defaults to the value of theEC2_PRIVATE_KEYenvironment variable (if it's set), and it overrides the default.-C,--cert CERTβ [DEPRECATED] specifyCERTas the X509 certificate to use. defaults to the value of theEC2_CERTenvironment variable (if it's set), and it overrides the default.-U,--url URLβ specifyURLas the web service URL to use. defaults to'https://ec2.amazonaws.com'(us-east-1), or to whatever theEC2_URLenvironment variable is set to (if it's set). it overrides the default.--region REGIONβ specifyREGIONas the web service region to use. this option will override the URL specified by the-U URLoption and theEC2_URLenvironment variable. it defaults to the region specified by theEC2_URLenvironment variable, orus-east-1if 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 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
not me ending this with the receipts but like. this is the EC2 API command line tools, version1.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
- 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