caeus
caeus

Reputation: 3706

How to choose the EC2 Instance type of an Elastic Beanstalk environment when creating it using awscli?

I've been through all the documentation (I guess). And haven't found a way, yet, to choose which EC2 instance type to use for my environment.

Upvotes: 1

Views: 526

Answers (1)

Gustaf
Gustaf

Reputation: 1349

You can specify it when you create your environment. (It will overwrite what you selected when you did eb init)

eb create --instance_type t2.micro

http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb3-create.html

You can also set it in your .ebextensions/config

option_settings:
  aws:autoscaling:launchconfiguration:
   InstanceType: t2.micro

http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options.html

Upvotes: 1

Related Questions