liveBook · Manning

Eb create command

As explained in Build Python Web Apps with Streamlit

The eb create command creates an Elastic Beanstalk environment and deploys application code to it.

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

How Build Python Web Apps with Streamlit covers it

How deep it goes
Explains the interactive deployment prompts, archive upload, startup status, and resulting URL, but not detailed AWS resource internals.
Examples
Uses a fact-frenzy production environment, Docker platform prompts, archive-upload status, and the generated Elastic Beanstalk URL.
What it assumes
Assumes an initialized EB CLI project, AWS credentials, an application root directory, and a deployable platform configuration.
What you can do after
Operate the EB CLI to create a named environment, deploy application code, and open its reported URL.
How it connects
Connects Elastic Beanstalk applications and environments with eb init, eb deploy, AWS regions, load balancers, S3, EC2, and IAM.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build Python Web Apps with Streamlit. The section links point to the parts of the book it draws on.