EC2-DETACH-NETWORK-INTERFACE(1)
π 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-keyKEY β AWS Access Key ID. Defaults to the value of theAWS_ACCESS_KEYenvironment variable (if set).-W,--aws-secret-keyKEY β AWS Secret Access Key. Defaults to the value of theAWS_SECRET_KEYenvironment variable (if set).-T,--security-tokenTOKEN β AWS delegation token. Defaults to the value of theAWS_DELEGATION_TOKENenvironment variable (if set).-K,--private-keyKEY β [DEPRECATED] SpecifyKEYas the private key to use. Defaults to the value of theEC2_PRIVATE_KEYenvironment variable (if set). Overrides the default.-C,--certCERT β [DEPRECATED] SpecifyCERTas the X509 certificate to use. Defaults to the value of theEC2_CERTenvironment variable (if set). Overrides the default.-U,--urlURL β SpecifyURLas the web service URL to use. Defaults to the value ofhttps://ec2.amazonaws.com(us-east-1) or to that of theEC2_URLenvironment variable (if set). Overrides the default.--regionREGION β SpecifyREGIONas the web service region to use. This option will override the URL specified by the-U URLoption andEC2_URLenvironment variable. This option defaults to the region specified by theEC2_URLenvironment 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-timeoutTIMEOUT β Specify a connection timeoutTIMEOUT(in seconds).--request-timeoutTIMEOUT β Specify a request timeoutTIMEOUT(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 disconnectNETWORKATTACHMENT.
π 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 π
http://docs.amazonwebservices.com/AWSEC2/2014-05-01/CommandLineReferencehttp://docs.amazonwebservices.com/AWSEC2/latest/CommandLineReference
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
- 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