| Euca2ools Guide / EC2-Compatible Commands | |
Modify an attribute of the specified instance.
euca-modify-instance-attribute [-b device=::(true|false)]
[--disable-api-termination {true,false}]
[--ebs-optimized {true,false}] [-g group]
[--instance-initiated-shutdown-behavior
{stop,terminate}] [-t instancetype]
[--kernel image] [--ramdisk image]
[--source-dest-check {true,false}]
[--sriov simple] [--user-data data]
[--user-data-file filename)] instance_id
| Options | Description | Required |
|---|---|---|
| instance_id | The ID of the instance to modify. | Yes |
| -b device=::{true|false}, --block-device-mapping device=::{true|false} | Change whether a volume attached to the instance will be deleted upon the instance's termination. | No |
| --disable-api-termination {true|false} | Prevent API calls from terminating the instance(s). | No |
| --ebs-optimized {true|false} | Change whether or not the instance should be optimized for EBS I/O. | No |
| -g,--group group | Security group to run the instance in | No |
| -t,--instance-type | Instance type to run. Valid values: m1.small | t1.micro | m1.medium | m1.large | c1.medium | m1.xlarge | c1.xlarge | m2.xlarge | m3.xlarge | cc1.4xlarge | m2.2xlarge | m3.2xlarge | m2.4xlarge | hi1.4xlarge | cc2.8xlarge | cg1.4xlarge | cr1.8xlarge | hs1.8xlarge |
No |
| --kernel | Kernel ID to be used | No |
| --ramdisk | Ramdisk ID to be used | No |
| --source-dest-check {true|false} | Change whether source/destination address checking is enabled | No |
| --sriov simple | Enable enhanced networking for the instance and its descendants. | No |
| --instance-initiated-shutdown-behavior behavior | Indicates whether to stop or terminate the instance when it's shut down. Valid values: stop, terminate Default: stop |
No |
| --user-data user_data | User data to pass to the instance. | No |
| --user-data-file file | File containing user data to supply to the instance. | No |
| -B,--block-device-mapping | Default block device mapping for the image. The format of the mapping is a comma-separated list of key=value pairs. | No |
| Option | Description |
|---|---|
| --show-empty-fields | Show empty fields as "(nil)". |
| --region user@region | Region and/or user name to search when looking up config file data. Only valid for EC2 endpoints. |
| -U,--url url | URL of the cloud service to connect to. For administrative commands, this should be <ip_address>:8773/services/Empyrean. |
| -I,--access-key-id key_id | User's access key ID. |
| -S,--secret-key secret_key | User's secret key. |
| --security-token token | User's security token. |
| --debug | Prints what the command sends to the server and what it receives from the server. Use when you're trying to debug Euca2ools. |
| --debugger | Enable interactive debugger on error. |
| -h,--help | Display the manual page for the command. |
| --version | Display the version of this tool. |
euca-modify-instance-attribute myinstanceid --disable-api-termination true -g mygroupname