| Did this page help you? Yes No Tell us about it... |
Returns information about an attribute of an instance. Only one attribute can be specified per call.
The short version of this command is ec2dinatt.
ec2-describe-instance-attribute
instance_id { --block-device-mapping | --disable-api-termination | --group-id |
--instance-initiated-shutdown-behavior | --instance-type | --kernel | --ramdisk | --root-device-name | | --source-dest-check |
--user-data }
| Name | Description | Required |
|---|---|---|
|
|
The instance ID. Type: String Default: None Example: i-43a4412a |
Yes |
|
|
Describes the mapping that defines native device names to use when exposing virtual devices. Type: String Default: None Example: -b |
No |
|
|
Whether the instance can be terminated using the EC2 API. A value of Type: String Default: None Example: --disable-api-termination |
No |
|
|
Security groups the instance is in. Type: String Default: None Example: -g |
No |
|
|
If an instance shutdown is initiated, this determines whether the instance stops or terminates. Type: String Default: None Example: --instance-initiated-shutdown-behavior |
No |
|
|
The instance type of the instance. Type: String Example: -t |
No |
|
|
Describes the ID of the kernel associated with the AMI. Type: String Default: None Example: --kernel |
No |
|
|
Describes the ID of the RAM disk associated with the AMI. Type: String Default: None Example: --ramdisk |
No |
|
|
The root device name (e.g., /dev/sda1). Type: String Default: None Example: --root-device-name |
No |
|
|
This 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. A value of Type: String Default: None Example: --source-dest-check |
No |
|
|
User data made available to the instance. Type: String Default: None Example: --user-data |
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 instances
Attribute or attribute list item value
For a block device mapping, the returned information includes the BLOCKDEVICE identifier, the device name, the volume ID, and the timestamp
Amazon EC2 command line tools display errors on stderr.
This example lists the kernel ID of the i-10a64379 instance.
PROMPT>ec2-describe-instance-attribute i-10a64379 --kernelkernel i-10a64379 aki-f70657b2