The eb create command deploys application code by creating an Elastic Beanstalk environment inside an existing application. Run it from the app’s root directory after initializing the EB CLI. section 12.3.6 section 12.6
During an interactive creation flow, configure the environment by choosing:
- An environment name, such as fact-frenzy-prod, and a DNS CNAME prefix. section 12.3.6
- A load balancer type and whether to enable Spot Fleet requests. section 12.3.6
- A service role when required by newer platforms. section 12.3.6
- The deployment archive upload and environment startup, then open the reported application URL. section 12.3.6
Create a production environment
After initialization, run `eb create`, enter `fact-frenzy-prod` as the environment name, and accept or configure the remaining prompts. Elastic Beanstalk archives the application, uploads it, starts the environment, and reports a URL such as `http://fact-frenzy.us-east-2.elasticbeanstalk.com`. Later code changes use `eb deploy` rather than creating another environment. section 12.3.6 section 12.6
eb create
View the command used to begin environment creation. section 12.3.6
