如何指定根实例存储的卷大小? [英] How to specify the volume size of the root instance storage?
本文介绍了如何指定根实例存储的卷大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有关要求,我目前使用看起来像这样一个点实例的AWS CLI命令:
An AWS CLI command for requesting a spot instance that I currently use looks like this:
aws ec2 request-spot-instances \
--region eu-west-1 \
--spot-price 0.1 \
--launch-specification "{ \
\"KeyName\": \"aws\", \
\"ImageId\": \"$IMGID_DIGITS\", \
\"InstanceType\": \"g2.2xlarge\" , \
\"SecurityGroupIds\": [\"$SGID\"] \
}"
如何/我在哪里可以指定根实例存储的大小为GB,而不是16的通常的8 GB?
How / Where do I specify the size of the root instance storage to be 16 GB instead of the usual 8 GB?
推荐答案
我想看看 BlockDeviceMappings.Ebs.VolumeSize
。
参考:的http://docs.aws.amazon.com/cli/latest/reference/ec2/request-spot-instances.html
这篇关于如何指定根实例存储的卷大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文