liveBook · Manning

Eb init command

As explained in Build Python Web Apps with Streamlit

The eb init command interactively initializes an Elastic Beanstalk application and configures deployment settings.

Use eb init from an app’s root directory to start Elastic Beanstalk setup. Its interactive wizard records the deployment choices Elastic Beanstalk needs before you create an environment: AWS region, credentials, application name, platform, and secure instance access. section 12.3.6

The guided prompts establish the deployment configuration:

  • Choose a region based partly on where users are located and the resulting response latency. section 12.3.6
  • Provide an AWS access key ID and secret access key when the EB CLI lacks valid credentials. section 12.3.6
  • Name the Elastic Beanstalk application, which can later contain environments such as staging and production. section 12.3.6
  • Confirm the detected Docker setup, select a platform branch, and optionally configure SSH access for instances. section 12.3.6

Initializing a Docker application

From the project directory, run eb init and select us-east-2, enter valid AWS credentials, name the application fact-frenzy, confirm Docker, and choose Docker running on 64bit Amazon Linux 2023. The command creates the application configuration; run eb create separately to create an environment and deploy the application. section 12.3.6 section 12.6

eb init

Inspect the eb init command entry point before following the region, credential, application, platform, and SSH prompts. section 12.3.6

How Build Python Web Apps with Streamlit covers it

How deep it goes
Walks through region, credentials, naming, platform, and SSH prompts, but stops short of environment creation and deployment.
Examples
Uses a fact-frenzy Docker application, us-east-2, Amazon Linux 2023, and optional SSH key configuration.
What it assumes
Assumes an app directory and AWS access credentials while explaining regions, applications, environments, platforms, and SSH setup.
What you can do after
Operate/configure the EB CLI to register an application and prepare its deployment settings interactively.
How it connects
Connects AWS regions, IAM credentials, Docker, Elastic Beanstalk applications, environments, EC2 instances, and eb create.

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.