EC2-DETACH-NETWORK-INTERFACE(1)

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

πŸ’– ec2-detach-network-interface β€” the manual page, but make it make sense πŸ’–

okay bestie, so this is the man page for ec2-detach-network-interface from the EC2 API command line tools. It's a little utility that rips a network interface off an instance, and honestly? It's giving surgical. Let's get into it. πŸ¦‹


✨ NAME ✨

ec2-detach-network-interface β€” Detaches a network interface from an instance. The NETWORKATTACHMENT

yes bestie the NAME section literally ends on that cliffhanger, the NETWORKATTACHMENT is just there, hanging, unpunctuated, iconic honestly πŸ’…

✨ SYNOPSIS ✨

ec2detnic ([ec2-detach-network-interface])
ec2detnic [GENERAL OPTIONS] NETWORKATTACHMENT [-f]

✨ GENERAL NOTES ✨

okay this is important so listen up 🫢

Any command option/parameter may be passed a value of - to indicate that values for that option should be read from stdin. That's the whole note. That's it. Slay.


✨ DESCRIPTION ✨

So what does this bad boy do? It detaches a network interface from an instance. The NETWORKATTACHMENT parameter is the ID of the attachment. That's the assignment. That's the task. Go off. πŸ”₯


✨ GENERAL OPTIONS ✨

these are the universal ones, the shared wardrobe, the staples 🌈

  • -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. (vibe check before you commit, lowkey genius)
  • -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).
ngl the deprecated ones are still listed so you know what's up, but they're marked [DEPRECATED] for a reason β€” that's a "we don't really do this anymore" moment 😭

✨ SPECIFIC OPTIONS ✨

the one that's special to this command, its main character moment πŸ‘‘

  • -f, --force β€” Forcefully disconnect NETWORKATTACHMENT.
πŸ’€ okay so "forcefully" is doing a LOT of work in that sentence. It's not a polite goodbye, it's a yeet. Mind how you use it.

✨ SEE ALSO ✨

go read more, bestie, the lore is deep πŸ“š


that's the whole page, no crumbs left πŸŽ€ and before you go β€” this one's brought to you by the EC2 API command line tools, version 1.6.14.1, api=2014-05. yeah it's an elder, it's vintage, it's still serving. mwah. πŸ’œ

πŸ“¦ where this page comes from