EC2-MODIFY-SNAPSHOT-ATTRIBUTE(1)

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

πŸ’… ec2-modify-snapshot-attribute β€” the manual page, but make it make sense

okay bestie, welcome to ec2-modify-snapshot-attribute(1), aka your little tool for messing with snapshot attributes. it lives in User Commands, it's iconic, and it's about to be your whole personality for the next five minutes. let's go πŸ¦‹


✨ NAME ✨

ec2-modify-snapshot-attribute β€” modify a snapshot attribute. that's it. that's the vibe. πŸ’–


🌸 SYNOPSIS 🌸

ec2msnapatt ([ec2-modify-snapshot-attribute])
ec2msnapatt [GENERAL OPTIONS] SNAPSHOT -c ( -a ENTITY | -r ENTITY )

so you can call it ec2msnapatt (the cute nickname) or the whole long ec2-modify-snapshot-attribute thing. both slay. ✨


πŸŽ€ GENERAL NOTES πŸŽ€

okay so this is important and also lowkey iconic: any command option or parameter can be handed the value -, and that means "bestie, read the values for that option from stdin instead." yeah. it's giving ✨pipes✨. 🫢


πŸ’– DESCRIPTION πŸ’–

you're modifying an attribute on a snapshot. that's the whole plot. the SNAPSHOT parameter is the ID of the snapshot you want to modify an attribute on, so like, don't forget it, no cap. 🌈


πŸ‘‘ GENERAL OPTIONS πŸ‘‘

these ones are the shared, every-command options. the main characters, if you will.

  • -O, --aws-access-key KEY β€” your AWS Access Key ID. defaults to whatever the AWS_ACCESS_KEY environment variable is set to (if it's set, obvi). πŸ”‘
  • -W, --aws-secret-key KEY β€” your AWS Secret Access Key. defaults to the value of the AWS_SECRET_KEY environment variable (if set). 🀫
  • -T, --security-token TOKEN β€” your 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. ⚠️ (yes, deprecated. we don't gatekeep, we just warn.)
  • -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. ⚠️ same energy.
  • -U, --url URL β€” specify URL as the web service URL to use. defaults to the value of https://ec2.amazonaws.com (that's us-east-1) or to whatever the EC2_URL environment variable says (if set). overrides the default. 🌐
  • --region REGION β€” specify REGION as the web service region to use. this option overrides the URL you set with the -U URL option and the EC2_URL environment variable. it defaults to the region specified by the EC2_URL environment variable, or us-east-1 if that environment variable isn't set. πŸ“
  • -D, --auth-dry-run β€” check if you can even perform the requested action, instead of actually performing it. it's a vibe check for permissions, fr fr. πŸ‘€
  • -v, --verbose β€” verbose output. she's chatty. πŸ—£οΈ
  • -?, --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 πŸ”₯

these are the ones that actually do the snapshot-attribute thing. the plot-specific girlies.

  • -c, --create-volume-permission β€” used together with the --add or --remove flags to, respectively, grant or revoke create volume permissions on the specified snapshot for the specified ENTITY. so -c plus -a = granting, -c plus -r = revoking. cute. πŸ’…
  • -a, --add ENTITY [--add ENTITY...] β€” add a stated attribute, e.g. create volume permissions, to the specified ENTITY. valid ENTITY values are:
    • AWS Account ID: User ID to receive stated snapshot attribute.
    • all: All users to receive the stated snapshot attribute.

(and yeah you can stack it β€” --add ENTITY more than once, she's flexible. ✨)

  • -r, --remove ENTITY [--remove ENTITY...] β€” remove a stated attribute, e.g. create volume permissions, from the ENTITY specified. valid ENTITY values are:
    • AWS Account ID: User ID to lose stated snapshot attribute.
    • all: All users to lose the stated snapshot attribute.

(also stackable. go off. πŸ’€)

reminder bestie: -a and -r are the two halves of the -c moment in the synopsis β€” -c ( -a ENTITY | -r ENTITY ) β€” so pick a side. 🫢

🌟 SEE ALSO 🌟

go read the lore, iykyk:


and that's the whole page, no skips, no crumbs left behind. this masterpiece ships as part of the EC2 API command line tools, version 1.6.14.1, api=2014-0... periodt. πŸ’–βœ¨πŸŽ€ go modify some snapshot attributes responsibly, bestie. πŸ¦‹πŸ‘‘

πŸ“¦ where this page comes from