EC2-MODIFY-INSTANCE-ATTRIBUTE(1)
π 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 theAWS_ACCESS_KEYenvironment 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 theAWS_SECRET_KEYenvironment variable (if set).-T,--security-token TOKENβ your AWS delegation token. defaults to the value of 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), and it overrides the default. it's giving retired, but she's still on the page. π-C,--cert CERTβ [DEPRECATED] specifyCERTas the X509 certificate to use. defaults to the value of theEC2_CERTenvironment variable (if set), and it overrides the default.-U,--url URLβ specifyURLas the web service URL to use. defaults tohttps://ec2.amazonaws.com(that's us-east-1) or to the value 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 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 timeoutTIMEOUT(in seconds).--request-timeout TIMEOUTβ specify a request timeoutTIMEOUT(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 toINSTANCETYPE.--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 toKERNEL.--ramdisk RAMDISKβ sets the ID of the ramdisk to be used by the instance toRAMDISK.--user-data USERDATAβ sets the user data associated with the instance toUSERDATA.--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 π
http://docs.amazonwebservices.com/AWSEC2/2014-05-01/CommandLineReferencehttp://docs.amazonwebservices.com/AWSEC2/latest/CommandLineReference
π 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
- 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