eb init
and eb create
aws
eb
eb init
% eb init \
-k {keyname} \
-p {platform-version} \
--profile {profile} \
--region {region} \
[application-name]
-k
The name of the Amazon EC2 key pair to use with the Secure Shell (SSH) client to securely log in to the Amazon EC2 instances running your Elastic Beanstalk application.
-p
The platform version to use. You can specify
Use eb platform list
to get a list of available configurations.
--profile
Use a specific profile from your AWS credentials file.
--region
Use the specified region.
[application-name]
Optional. If not specified, eb init
will use the current directory name as the application name.
eb create
Creates a new environment and deploys an application to it, from the application source code in the local project directory.
% date "+%Y%m%d%H%M%S"
% eb create \
-c {subdomain-name} \
--elb-type {type} \
--envvars {name1=value1,name2=value2} \
-i \
-im {number-of-instances} \
-ix {number-of-instances} \
-p {platform-version} \
-pr \
-r {region} \
--scale {number-of-instances} \
--vpc \
--vpc.ec2subnets {subnet1,subnet2} \
--vpc.elbpublic \
--vpc.elbsubnets {subnet1,subnet2} \
--vpc.id {id} \
--vpc.publicip \
--vpc.securitygroups {securitygroup1,securitygroup2} \
--profile {profile} \
--region {region} \
[environment-name]
-c
The subdomain name to prefix the CNAME DNS entry that routes to your website. Default: The environment name.
--elb-type
The load balancer type; valid values:
classic
application
(default)network
--envvars
Environment properties in a comma-separated list with the format name=value
.
-i
The Amazon EC2 instance type that you want your environment to use. If you don't specify this option, Elastic Beanstalk provides a default instance type.
-im
The minimum number of Amazon EC2 instances that you require your environment to have. Default: 1
.
-ix
The maximum number of Amazon EC2 instances you allow your environment to have. Default: 4
.
-p
The platform version to use. You can specify
Use eb platform list
to get a list of available configurations.
-pr
Preprocess and validate the environment manifest and configuration files in the source bundle. Validating configuration files can identify issues prior to deploying the application version to an environment.
-r
The AWS Region where you want to deploy the application.
For the list of values you can specify for this option, see AWS Elastic Beanstalk Endpoints and Quotas in the AWS General Reference.
--scale
Launch with the specified number of instances
--vpc
Configure a VPC for your environment. When you include this option, the EB CLI prompts you to enter all required settings prior to launching the environment.
--vpc.ec2subnets
Specifies subnets for Amazon EC2 instances in a VPC. Required when --vpc.id
is specified.
--vpc.elbpublic
Launches your Elastic Load Balancing load balancer in a public subnet in your VPC.
--vpc.elbsubnets
Specifies subnets for the Elastic Load Balancing load balancer in a VPC.
--vpc.id
Launches your environment in the specified VPC.
--vpc.publicip
Launches your Amazon EC2 instances in a public subnet in your VPC.
--vpc.securitygroups
Specifies security group IDs. Required when --vpc.id
is specified.
--profile
Use a specific profile from your AWS credentials file.
--region
Use the specified region.
[environment-name]