EC2-IMPORT-KEYPAIR(1)

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

✨ EC2-IMPORT-KEYPAIR ✨

okay bestie, welcome to the ec2-import-keypair manual page πŸ’– this is one of those User Commands situation, and it's literally here to help you import a public key for a key pair. that's the whole vibe. let's get into it 🫢


🌸 NAME 🌸

ec2-import-keypair β€” Imports public key for a key pair πŸ”‘βœ¨


πŸŽ€ SYNOPSIS πŸŽ€

ec2ikey ([ec2-import-keypair])
ec2ikey [GENERAL OPTIONS] KEY_NAME --public-key-file KEY_FILE

πŸ’… GENERAL NOTES πŸ’…

okay so real talk, this is such a cute lil rule:

  • Any command option/parameter may be passed a value of - to indicate that values for that option should be read from stdin. 🧚

that's it. that's the note. slay.


πŸ¦‹ DESCRIPTION πŸ¦‹

Imports the public key for a key pair. that's it, that's the function πŸ’œ


⭐ GENERAL OPTIONS ⭐

these are the universal ones, the main characters of the options world πŸ‘‘

  • -O, --aws-access-key KEY β€” AWS Access Key ID. Defaults to the value of the AWS_ACCESS_KEY environment variable (if set).
  • -W, --aws-secret-key KEY β€” 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). 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 set). Overrides the default. 😭
  • -U, --url URL β€” Specify URL as the web service URL to use. Defaults to the value of https://ec2.amazonaws.com (us-east-1) or to that of the EC2_URL environment variable (if set). 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 EC2_URL environment variable. This option defaults to the region specified by the EC2_URL environment variable or us-east-1 if this environment variable is not set. 🌍
  • -D, --auth-dry-run β€” Check if you can perform the requested action rather than actually performing it. like a vibe check but for permissions πŸ’€
  • -v, --verbose β€” Verbose output. (she talks a LOT. we love her.)
  • -?, --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).

πŸ’– SPECIFIC OPTIONS πŸ’–

the one that's like, specifically for this command. her moment. πŸ‘‘

  • -f, --public-key-file FILE β€” Path to a file containing the public key material to import. πŸ“

🌈 SEE ALSO 🌈


and that's the whole page bestie, no cap, you're now an ec2-import-keypair expert πŸ’…βœ¨

okay bye, this page is from EC2 API command line tools version 1.6.14.1 with api=2014-05-01, dated back to the EC2-IMPORT-KEYPAIR(1) era β€” go import some keys, you iconic little keypair-importing legend πŸ‘‘πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from