EC2-DETACH-VOLUME(1)
π EC2-DETACH-VOLUME π
ok so this is the ec2-detach-volume page from the EC2 API command line tools manual, bestie β section 1, User Commands. buckle up, we're detaching volumes and it's gonna be a whole vibe. π¦
β¨ NAME β¨
ec2-detach-volume β detach an attached volume, periodt.
π SYNOPSIS π
ec2detvol ([ec2-detach-volume])
ec2detvol [GENERAL OPTIONS] VOLUME [-i INSTANCE [-d DEVICE]]
[-f|--force]
πΈ GENERAL NOTES πΈ
ok important one, lowkey applies everywhere: any command option or parameter can be handed a value of -, and that means "read the values for this option from stdin instead." so - is basically the "ask stdin, not me" move. iykyk. π
π DESCRIPTION π
you're detaching an attached volume from the instance you picked. and yeah, if you said so, you're doing it forcefully. π
the VOLUME parameter is the one that says which volume we're detaching. that's the whole thing. that's the assignment.
π GENERAL OPTIONS π
-O,--aws-access-keyKEY β your AWS Access Key ID. defaults to whateverAWS_ACCESS_KEYis set to in the environment (if it's set at all).-W,--aws-secret-keyKEY β your 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] useKEYas the private key. defaults to the value of theEC2_PRIVATE_KEYenvironment variable (if set). overrides the default. (yes it's deprecated, we don't make the rules π)-C,--certCERT β [DEPRECATED] useCERTas the X509 certificate. defaults to the value of theEC2_CERTenvironment variable (if set). overrides the default.-U,--urlURL β useURLas the web service URL. defaults tohttps://ec2.amazonaws.com(that's us-east-1) or to whatever theEC2_URLenvironment variable says (if set). overrides the default.--regionREGION β useREGIONas the web service region. this one overrides both the URL from the-U URLoption and theEC2_URLenvironment variable. it defaults to the region given by theEC2_URLenvironment variable, orus-east-1if that variable isn't set. she's got main character energy and she takes priority. π-D,--auth-dry-runβ check whether you could do the requested action instead of actually doing it. a vibe check, essentially.-v,--verboseβ verbose output. more words. more lore.-?,--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 β set a connection timeout ofTIMEOUT, in seconds.--request-timeoutTIMEOUT β set a request timeout ofTIMEOUT, in seconds.
π§ SPECIFIC OPTIONS π§
-i,--instanceINSTANCE β the running instance the volume is attached to.-d,--deviceDEVICE β a device name, the one theVOLUMEis exposed as insideINSTANCE.-f,--forceβ forcefully disconnectVOLUMEfromINSTANCE.
β οΈ WARNING: this can lead to data loss or a corrupted file system. use this option only as a last resort, to detach a volume from a failed instance. the instance will not have an opportunity to flush file system caches nor file system meta data. like... bestie, i'm begging you, this is the nuclear option. ππ₯
π SEE ALSO π
http://docs.amazonwebservices.com/AWSEC2/2014-05-01/CommandLineReferencehttp://docs.amazonwebservices.com/AWSEC2/latest/CommandLineReference
ok that's the page!! π«Ά this was the EC2 API command line tools, version 1.6.14.1, api 2014-05-01, and the page itself is EC2-DETACH-VOLUME(1). mwah, go forth and detach responsibly. πβ¨
π¦ 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