Creating your first AWS Elastic Beanstalk environment with Python | Scribe

    Creating your first AWS Elastic Beanstalk environment with Python

    • Hafeez Baig |
    • 36 steps |
    • 3 minutes
    information ordinal icon

    Refer to the following guide to learn how to use IAM in the cloud\ <https://scribehow.com/shared/Creating_an_IAM_User_and_User_Group_in_AWS_Management_Console__hWNiiXlcRJKFqYZZEJD-cg>

    1

    Sign in to **AWS Management Console** as an **IAM User** **Pre-requisite** - Ensure you have selected the AWS region closest to your location\ For this guide, we will be using us-east-2 (Ohio) as a preferred choice

    2

    Type **Elastic Beanstalk** in the search bar and click on **Elastic Beanstalk** to view the Elastic Beanstalk Dashboard

    information ordinal icon

    **What is Elastic Beanstalk?** Elastic Beanstalk is an AWS service that simplifies deploying and managing applications in the cloud. It automates infrastructure provisioning, scaling, and monitoring, allowing developers to focus on coding rather than managing infrastructure details.

    3

    On the **Elastic Beanstalk** dashboard, on the right side click on the **Create application** button

    4

    **Create new application** wizard will open, type "**my-first-elastic-beanstalk-application**" in the text input field

    5

    Scroll the page and click on the **Create** button

    information ordinal icon

    **What is Elastic Beanstalk application?** An Elastic Beanstalk application is a container for your application code and configurations that runs on AWS infrastructure managed by Elastic Beanstalk.

    6

    On the **Elastic Beanstalk** dashboard, click on the **Application** from the left bar

    7

    Click on the Application name **my-first-elastic-beanstalk-application**

    8

    **my-first-elastic-beanstalk-application** wizard will open, on the right side click on the **Create new environment**

    information ordinal icon

    **What is Elastic Beanstalk Environment?** An Elastic Beanstalk environment is a configuration setting that defines the infrastructure, resources, and runtime parameters for running an application within Elastic Beanstalk. It encompasses elements such as instance type, auto-scaling settings, load balancer configuration, environment variables, and more. Each Elastic Beanstalk application can have multiple environments, such as development, testing, and production, each with its own settings and resources.

    9

    **Configure environment** wizard will open, select the option **Web server environment**

    10

    Scroll to the **Environment information** section, type "**My-first-elastic-beanstalk-appli-env**" for **Environment name** and type "**My-first-elastic-beanstalk"** for **Domain**

    11

    Scroll to the **Platform** section and select the option **Managed platform** and select the **Platform** as **Python**

    12

    From the **Platform version** dropdown select the option **4.0.10 (Recommended)** or whichever is the latest version

    13

    Scroll to the **Application code** section, and select the **Sample application** radio button

    14

    Scroll to the **Presets** section, select the option **Single instance (free tier eligible)** and click on the **Next** button

    15

    **Configure service access** wizard will open, select the option **Create and use new service role** and type "**aws-elastic-beanstalk-service-role"** for Service role name

    information ordinal icon

    **What is Service role?** In Elastic Beanstalk, a service role is an IAM role that grants permissions to the Elastic Beanstalk service to manage resources on your behalf within your AWS account.