aws ec2 modify-instance-attribute
Modifies the specified attribute of the specified instance. AWS CLI reference
18 options Its page in the AWS CLI reference
Options
--attributeThe name of the attribute to modify.--block-device-mappingsModifies the DeleteOnTermination attribute for volumes that are currently attached.--disable-api-stopIndicates whether an instance is enabled for stop protection.--disable-api-terminationEnable or disable termination protection for the instance.--dry-runChecks whether you have the required permissions for the operation, without actually making the request, and provides an error response.--ebs-optimizedSpecifies whether the instance is optimized for Amazon EBS I/O.--ena-supportSet to true to enable enhanced networking with ENA for the instance.--enclave-optionsEnables or disables the instance for Amazon Web Services Nitro Enclaves.--groupsReplaces the security groups of the instance with the specified security groups.--instance-idThe ID of the instance.--instance-initiated-shutdown-behaviorSpecifies whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).--instance-typeChanges the instance type to the specified value.--kernelChanges the instance's kernel to the specified value.--ramdiskChanges the instance's RAM disk to the specified value.--source-dest-checkEnable or disable source/destination checks, which ensure that the instance is either the source or the destination of any traffic that it receives.--sriov-net-supportSet to simple to enable enhanced networking with the Intel 82599 Virtual Function interface for the instance.--user-dataChanges the instance's user data to the specified value.--valueA new value for the attribute.