liveBook · Manning

EB CLI

As explained in Build Python Web Apps with Streamlit

EB CLI is a command-line interface for creating, configuring, deploying, and managing Elastic Beanstalk applications and environments.

EB CLI is a terminal interface for creating, configuring, deploying, and managing Elastic Beanstalk applications and environments. It avoids repeated visits to the AWS console and guides setup interactively. section 12.3.6

Deploy a project from its root directory by moving through this practical sequence:

  • Run eb init to start the setup wizard. Choose an AWS region, provide AWS access credentials, and name the Elastic Beanstalk application. section 12.3.6
  • Confirm the detected Docker setup, select a platform branch, and optionally configure SSH access for instances. section 12.3.6
  • Run eb create to create an environment under the application. Choose its name, DNS CNAME prefix, load balancer type, and related service options. section 12.3.6
  • Run eb deploy after code changes to archive the application, upload it to S3, and update the running environment. section 12.3.6 section 12.6

Deploying a Docker application

From the project directory, run eb init and create an application such as fact-frenzy. Select a Docker platform and configure the region and credentials. Then run eb create, name the environment fact-frenzy-prod, and wait for the CLI to report that the application is available at its Elastic Beanstalk URL. After changing the code, run eb deploy to publish the new version. section 12.3.6

eb init

Inspect the eb init command as the entry point for interactive Elastic Beanstalk configuration. section 12.3.6

How Build Python Web Apps with Streamlit covers it

How deep it goes
Walks through initialization, credentials, region, platform, environment creation, and redeployment, but does not detail CLI internals.
Examples
Uses eb init, eb create, and eb deploy to launch and update a Docker application named fact-frenzy.
What it assumes
Assumes AWS access credentials and a project directory, while guiding region, platform, application, environment, and SSH choices.
What you can do after
Operate Elastic Beanstalk through named CLI commands to initialize applications, create environments, and redeploy changes.
How it connects
Connects applications and environments with Docker, AWS regions, IAM credentials, EC2, S3, load balancers, and Elastic Beanstalk.

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.