EC2-DESCRIBE-SNAPSHOTS(1)
β¨ EC2-DESCRIBE-SNAPSHOTS β¨
okay bestie so this is a page from the EC2 API command line tools manual β section 1, User Commands, iykyk β and it's literally all about ec2-describe-snapshots, aka ec2dsnap. let's get into it π
πΈ NAME πΈ
ec2-describe-snapshots β describe snapshots. that's it. that's the name. iconic, concise, we love her π
π SYNOPSIS π
ec2dsnap ([ec2-describe-snapshots])
ec2dsnap [GENERAL OPTIONS] [SNAPSHOT [...]] [-a] [-o OWNER [...]] [-r
USER [...]]
so yeah, you can call her ec2dsnap, you can call her ec2-describe-snapshots, she answers to both π
π¦ GENERAL NOTES π¦
- any command option/parameter can be handed a value of
-β and that means "bestie, read the values for this option from stdin instead". handy af. π
π DESCRIPTION π
okay so what does she actually do? she lists and describes snapshots you made before, plus any snapshots you have CreateVolume permissions for. yes ma'am. π₯
- the
SNAPSHOTparameters, if you specify them, list the specific snapshot(s) you want described. β¨ - if you pass no parameters at all, she describes all snapshots owned by you, or explicitly shared with you. no cap.
- with parameters, the result set is the intersection of: the snapshots explicitly named, the snapshots owned by the specified owner(s), and the snapshots with
CreateVolumepermissions as specified. intersection. like a venn diagram. π«Ά
Examples β the -o / -r combo lore π:
-o self,-r selfor<null>β only your snapshots-o self,-r allβ snapshots you have shared publicly-o self,-r <userid>β snapshots you have shared with<userid>-o <userid>,-r selfβ snapshots<userid>has shared with you-o <userid>,-r allβ snapshots<userid>has shared publicly-o <userid>,-r <null>β snapshots<userid>has shared publicly or with you-o <null>,-r selfβ your snapshots and snapshots any other user has shared with you-o <null>,-r allβ all public snapshots-o <null>,-r <null>β your snapshots, public snapshots, and any other snapshots shared with you
β¨ GENERAL OPTIONS β¨
the whole squad of shared flags, periodt:
-O,--aws-access-key KEYβ AWS Access Key ID. defaults to whatever theAWS_ACCESS_KEYenvironment variable is (if it's set). π-W,--aws-secret-key KEYβ AWS Secret Access Key. defaults to theAWS_SECRET_KEYenvironment variable (if set). π€«-T,--security-token TOKENβ AWS delegation token. defaults to theAWS_DELEGATION_TOKENenvironment variable (if set). ποΈ-K,--private-key KEYβ [DEPRECATED] specifyKEYas the private key to use. defaults to the value of theEC2_PRIVATE_KEYenvironment variable (if set). overrides the default. β οΈ girl she's deprecated, proceed accordingly-C,--cert CERTβ [DEPRECATED] specifyCERTas the X509 certificate to use. defaults to the value of theEC2_CERTenvironment variable (if set). overrides the default. β οΈ also deprecated, just so you know-U,--url URLβ 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. π--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 is not set. πΊοΈ-D,--auth-dry-runβ check if you can perform the requested action instead of actually performing it. a little vibe check, not a commitment. π§-v,--verboseβ verbose output. she will overshare. π¬-?,--helpβ display this help. hi, this is her. π-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). β
π SPECIFIC OPTIONS π
the main-character flags, just for snapshots π:
-a,--allβ describe all snapshots, public, private or shared, to which you have access. everything. the whole buffet. π½οΈ-o,--owner OWNERβ only snapshots owned by the specified users are described.OWNERmay be:- a user's account id β for snapshots owned by that user,
'self'β for snapshots owned by you, or'amazon'β for snapshots owned by Amazon.
-r,--restorable-by USERβ only snapshsots with restorable permissions as specified are described.USERmay be any of the following: (yes bestie the original really does say "snapshsots", we're keeping it, no notes π*)*- a user's account id
- snapshots owned by you for which you have granted explicit
CreateVolumepermissions to that user.
- snapshots owned by you for which you have granted explicit
self- snapshots for which you have explicit
CreateVolumepermissions
- snapshots for which you have explicit
all- snapshots with public
CreateVolumepermissions.
- snapshots with public
- a user's account id
-F,--filter FILTERβ add a filter criterion for the result-set. π§
π SEE ALSO π
go read the lore, bestie:
http://docs.amazonwebservices.com/AWSEC2/2014-05-01/CommandLineReferencehttp://docs.amazonwebservices.com/AWSEC2/latest/CommandLineReference
π quick reminder: those-Kand-Cflags are DEPRECATED. i'm not saying don't, i'm saying she's deprecated and i'm telling you she's deprecated. π«Ά
okay that's the whole page, we ate and left no crumbs π
β¨ this was the EC2 API command line tools, version 1.6.14.1, api=2014-05-01 β stan forever, bye bestie! πππ¦πΈ
π¦ 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