1
我已经通过了所有documentation(我猜)。而且还没有找到一种方法来选择哪种EC2实例类型用于我的环境。如何在使用awscli创建Elastic Beanstalk环境时选择EC2实例类型?
我已经通过了所有documentation(我猜)。而且还没有找到一种方法来选择哪种EC2实例类型用于我的环境。如何在使用awscli创建Elastic Beanstalk环境时选择EC2实例类型?
您可以在创建环境时指定它。 (这将覆盖你这么做的时候EB初始化你选择什么)
eb create --instance_type t2.micro
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb3-create.html
您还可以设置它在你的.ebextensions /配置
option_settings:
aws:autoscaling:launchconfiguration:
InstanceType: t2.micro
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options.html