Creating Launch Templates for EC2 instances | Scribe

    Creating Launch Templates for EC2 instances

    • Hafeez Baig |
    • 20 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> Refer to this guide to learn how to create a Launch template for an EC2 instance\ <https://scribehow.com/shared/AWS__Creating_your_first_EC2_Instance__Xcu7ZVCdRfWx56YVktKgbQ>

    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 **EC2** in the search bar and click on **EC2** to view the EC2 Dashboard

    3

    On the EC2 dashboard click on **Instances** from the left bar to view the EC2 instances

    4

    Select the instance named - **First EC2 Instance**

    5

    Click on the **Actions** button from the top right of the page to select the **Image and templates** option from the Action dropdown

    6

    From the **Image and templates** list select **Create template from instance**

    7

    Create launch template wizard will open. Enter the Launch Template name and Template version

    8

    Keep the **AMI** settings at their default values as they will be automatically determined based on the configuration of the **EC2 instance**

    9

    Keep the **Instance type** as default as it will be automatically determined based on the **EC2 instance** configuration

    10

    Keep the **Key pair (login)** and **Network settings** as default as they will be automatically determined from the **EC2 instance** configuration

    11

    Review the summary and click on **Create launch template** button

    12

    The launch template will be created successfully. Click on the **View launch templates** button to open the Launch Template dashboard

    information ordinal icon

    Let's proceed to create an **EC2 instance** using the generated launch template.

    13

    Select the created Launch Template "**MyEc2LaunchTemplate**"

    14

    Click on the **Actions** button from the top right of the page and select **Launch instance from template** from the Action dropdown

    15

    Leave everything as default in the Launch template wizard

    16

    Review the summary and click on the **Launch instance** button

    17

    An **EC2 instance** will be successfully launched from the **Launch template**

    18

    Click on **View launch templates** button to open the launch template dashboard