| Did this page help you? Yes No Tell us about it... |
Resets an attribute of an instance to its default value. To reset the kernel or RAM disk, the instance must be in a stopped state.
To reset the SourceDestCheck, the instance can be either running or stopped.
The SourceDestCheck attribute exists to enable a Network Address Translation (NAT) instance in a VPC to perform NAT.
The attribute controls whether source/destination checking is enabled on the instance. The default value is true, which
means checking is enabled. The value must be false for the instance to perform NAT. For more information, go to NAT Instances in the Amazon Virtual Private Cloud User Guide.
The short version of this command is ec2rinatt.
ec2-reset-instance-attribute
instance_id { --kernel kernel_id | --ramdisk ramdisk_id | --source-dest-check }
| Name | Description | Required |
|---|---|---|
|
|
ID of the instance on which the attribute will be reset. Type: String Default: None Example: i-43a4412a |
Yes |
|
|
Resets the ID of the kernel. Type: String Default: None Example: --kernel |
No |
|
|
Resets the ID of the RAM disk. Type: String Default: None Example: --ramdisk |
No |
|
|
Resets the Type: String Default: None Example: --source-dest-check |
No |
| Option | Description |
|---|---|
|
|
Overrides the Region specified in the Default: The Example: |
|
|
Default: The Example: |
|
|
The private key to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
The X.509 certificate to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
Specifies a connection timeout (in seconds). Example: --connection-timeout 30 |
|
|
Specifies a request timeout (in seconds). Example: --request-timeout 45 |
|
|
Displays verbose output by showing the SOAP request and response on the command line. This is particularly useful if you are building tools to talk directly to our SOAP API. |
|
|
Displays column headers in the output. |
|
|
Shows empty columns as |
|
|
Do not display tags for tagged resources. |
|
|
Prints internal debugging information. This is useful to assist us when troubleshooting problems. |
|
|
Displays Help. |
|
|
If Example: |
The command returns a table that contains the following information:
Attribute type identifier
ID of the instance on which the attribute is being reset
Action identifier ("RESET")
Amazon EC2 command line tools display errors on stderr.
This example resets the kernel attribute.
PROMPT>ec2-reset-instance-attribute i-10a64379 --kernelkernel i-10a64379 RESET