EC2-MODIFY-INSTANCE-ATTRIBUTE(1)

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

πŸ‘‘ EC2-MODIFY-INSTANCE-ATTRIBUTE β€” the "change stuff about your instance" page πŸ’…

okay bestie, this is ec2-modify-instance-attribute from the User Commands manual, and it's lowkey iconic. it's the tool that changes one lil thing about an EC2 instance. one. single. thing. per call. that's the vibe. ✨


🌸 NAME 🌸

ec2-modify-instance-attribute β€” Modify an instance attribute


πŸ¦‹ SYNOPSIS πŸ¦‹

ec2minatt ([ec2-modify-instance-attribute, ec2miatt])
ec2minatt [GENERAL OPTIONS] [SPECIFIC OPTIONS] INSTANCE

πŸ’– GENERAL NOTES πŸ’–

so here's the tea, and it applies to literally every option and parameter on this page: you can pass a value of - to any command option/parameter, and that means "read the value for this thing from stdin instead." yes, all of them. no cap. 🫢


✨ DESCRIPTION ✨

it modifies an instance attribute. and bestie, hear me when i say this β€” only one attribute can be specified per call. one. don't try to be overachieving. πŸ™ˆ


πŸŽ€ GENERAL OPTIONS πŸŽ€

these are the options that every single command in this whole family shares. the group chat classics. πŸ’œ

  • -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 at all).
  • -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), and it overrides the default. it's giving retired, but she's still on the page. 😭
  • -C, --cert CERT β€” [DEPRECATED] specify CERT as the X509 certificate to use. defaults to the value of the EC2_CERT environment variable (if set), and it overrides the default.
  • -U, --url URL β€” specify URL as the web service URL to use. defaults to https://ec2.amazonaws.com (that's us-east-1) or to the value 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 the EC2_URL environment variable. it defaults to the region specified by the EC2_URL environment variable, or us-east-1 if that env var isn't set. main character energy, honestly.
  • -D, --auth-dry-run β€” check if you can perform the requested action rather than actually performing it. a little dress rehearsal. 🧚
  • -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).

πŸ”₯ SPECIFIC OPTIONS πŸ”₯

this is where it gets juicy. pick one. that's the rule. periodt. πŸ’…

  • -b, --block-device-mapping MAPPING β€” modifies the block-device-mapping for the instance, in the form '<device>=<block-device>', where 'block-device' can be one of the following:
    • '[<volume-id>][:<delete-on-termination>]' β€” indicates that an Amazon EBS volume should be exposed at the specified device. the following combinations are supported:
      • '<volume-id>' β€” the ID of the Amazon EBS volume, which must be owned by the caller.
      • '<delete-on-termination>' β€” indicates whether the Amazon EBS volume should be deleted on instance termination. if it's not specified, this will default to 'true' and the volume will be deleted.

for example:

'/dev/sdb=vol-7eb96d16
'/dev/sdc=vol-7eb96d16:false

see the latest Developer's Guide for further information. πŸ“š

  • -t, --instance-type INSTANCETYPE β€” sets the instance-type of the specified instance to INSTANCETYPE.
  • --disable-api-termination BOOLEAN β€” sets whether to disallow the termination of the instance using the API. valid options are 'true' and 'false'.
  • --instance-initiated-shutdown-behavior BEHAVIOR β€” sets the behavior of the instance for an instance initiated shutdown (i.e. 'shutdown -h now').
    • 'stop' β€” indicates that the instance should move into the stopped state and remain available to be restarted.
    • 'terminate' β€” indicates that the instance should move into the terminated state.
  • --kernel KERNEL β€” sets the ID of the kernel to be used by the instance to KERNEL.
  • --ramdisk RAMDISK β€” sets the ID of the ramdisk to be used by the instance to RAMDISK.
  • --user-data USERDATA β€” sets the user data associated with the instance to USERDATA.
  • --source-dest-check BOOLEAN β€” sets whether to enable the source/dest check on traffic through this instance. valid options are 'true' and 'false'.
  • -g, --group-id GROUP_ID [ --group-id GROUP_ID [...]] β€” replace the security groups for a VPC instance.
  • --ebs-optimized BOOLEAN β€” provides dedicated throughput to Amazon EBS and a software stack optimized for EBS I/O. additional usage charges apply when using this option. bestie, that means money. πŸ’€
  • --sriov SRIOV β€” set SR-IOV networking support for the instance.

🌈 SEE ALSO 🌈


πŸ’– and that's the whole page, bestie. go forth and modify exactly one attribute at a time. i'm so proud of you. 🫢

this whole thing is from the EC2 API command line tools, version 1.6.14.1, API version 2014-0 (yes the version string on the footer is genuinely a lil cut off like that, we don't question it, we accept her as she is πŸ’…). mwah, go slay. βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from