简体   繁体   中英

EBS volume for m4.large not ebsOptimized

M4 large instances are EBS-optimized by default as per below URL :

https://aws.amazon.com/ec2/instance-types/

When I try to check the status using aws-cli I get result with boolean value set to false. The command I used is as below :

ec2-describe-instance-attribute i-xxxxxxxxxxxxxxxxx --ebs-optimized --aws-access-key XXXXXXXXXXXXXXXXXXXX --aws-secret-key XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Result of above command :

ebsOptimized i-xxxxxxxxxxxxxxxxx false

Is it the correct way to verify if the instance is EBS optimized? Please help me to verify if the instance is EBS optimized.

See the command and output below:

[root@ip-172-1-1-1 ~]# aws ec2 describe-instance-attribute --region eu-west-1  --instance-id xxxxxxxxx --attribute ebsOptimized
{
    "InstanceId": "i-003069xxxxxxxxx",
    "EbsOptimized": {
        "Value": true
    }
}

You can also see this from aws console reflecting as below:

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM