Creating your first AWS Elastic Beanstalk environment with Python - New | Scribe

    Creating your first AWS Elastic Beanstalk environment with Python - New

    • Hafeez Baig |
    • 38 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 ca-central-1 (Central) 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
    **Configure environment** wizard will open, select the option **Web server environment**
    5
    Scroll the page and type "**my-second-elastic-beanstalk-in28minutes**" in the text input field
    6
    Scroll to the **Environment information** section, type "**My-second-elastic-beanstalk-in28-env**" for **Environment name**
    7
    Scroll to the **Platform** section and select the option **Managed platform**
    8
    Scroll the page, select **Python** from the dropdown and select the option **4.3.1 (Recommended)** for platform version or whichever is the latest version
    9
    Scroll to the **Application code** section, and select the **Sample application** radio button
    10
    Scroll to the **Presets** section, select the option **Single instance (free tier eligible)**
    11
    On the right side, click on the **Next** button
    12
    **Configure service access** wizard will open, select the option **Use an existing service role**
    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.
    information ordinal icon
    Next, we need to create an EC2 instance profile. To do so, follow the steps below
    13
    Type **IAM** in the search bar and click on **IAM** to view the IAM Dashboard
    14
    On the IAM dashboard, click on the **Roles** from the left bar
    15
    **Roles** wizard will open, on the right side click on the **Create role** button
    16
    **Select trusted entity** wizard will open, under **Trusted entity type** section select the option **AWS service**