[英]How to pass the preferred hard disk size to “aws ec2 run-instances” command?
到目前為止,這是我一直在使用的命令:
aws ec2 run-instances --user-data file://user-data.sh --region us-east-1 --image-id ami-e13739f6 --key-name redacted1 --instance-type t2.small --query 'Instances[].InstanceId' --output text
--block-device-mappings (list)
VirtualName = string,DeviceName = string,Ebs = {SnapshotId = string,VolumeSize = integer,DeleteOnTermination = boolean,VolumeType = string,Iops = integer,Encrypted = boolean},NoDevice = string ...
似乎VolumeSize
是要使用的參數。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.