# EC2 Launch Templates

**URL:** https://community.cloudbank.org/t/ec2-launch-templates/251
**Category:** AWS
**Created:** [September 5, 2025, 12:20am UTC](https://community.cloudbank.org/t/ec2-launch-templates/251 "2025-09-05T00:20:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![vin011](https://avatars.discourse-cdn.com/v4/letter/v/71e660/32.png) [@vin011](https://community.cloudbank.org/u/vin011)
#### Post date: [September 5, 2025, 12:20am UTC](https://community.cloudbank.org/t/ec2-launch-templates/251/1 "2025-09-05T00:20:21Z")

</div>

# Overview

This guide explores EC2 Launch Templates, including their features and configuration options.

Launch Templates are a free feature of Amazon EC2 that allows users to define and manage a consistent set of parameters for launching instances. While templates themselves incur no cost, the resources provisioned are billed according to standard AWS pricing.

Launch Templates streamline the instance creation process by reducing manual input, supporting version control, and ensuring configuration consistency across environments. Launch Templates can simplify permission management and enforce best practices. They are compatible with various instance types, including On-Demand, Spot Instances and Capacity Reservations.

> **Note** : Launch Templates by themselves do not schedule or automate instance launches. They act as a reusable configuration blueprint, but must be integrated with other AWS services to enable automation. Common integrations include:
> 
> - Auto Scaling Groups with Scheduled Actions for dynamic scaling
> - EC2 Fleet or Spot Fleet for flexible and cost-optimized capacity provisioning
> - Amazon EventBridge with Lambda for time-based or event-driven instance launches
> 
> Some integrations above are disabled by default and need to be enabled per request to [help@cloudbank.org](mailto:help@cloudbank.org).

The below will guide you through the Launch Template creation options. It also assumes the Launch Templates will be used with an existing Capacity Reservation.

For additional information, please refer to [AWS User Guide for Launch Templates](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/create-launch-template.html).

# Creating a Launch Template From Scratch

First, ensure the AWS Console is set to the desired Availability Zone (AZ) region for the instance to be launched from. Then go to the EC2 dashboard and select `Launch Templates` on the left navigation.

If this is your first time, you may see a general overview of Launch Templates; select `Create launch template`.

 ![Launch Template Dashboard - First Time](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/66b0e4468b03568963034aa51586a5c325f2f2d6.jpeg)

Otherwise, if you have used Launch Templates before, you will see the Launch template list. Select the `Create launch template` button.

 ![Launch Template Dashboard](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/139f294becf02a43ffcebb4b9dd7795c559e0235.png)

Then the page will display several configuration options and fields to fill in. Some are:

- **Launch template name**  
 ![Launch Template Name](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/f681bb786dc8c3ca7ca612cce3164e1b2a62c9e5.png)
- **Application and OS Image (Amazon Machine Image)**
  - If you created a custom AMI, then select the `Browse more AMIs` button and choose the AMI that you created for the Capacity Block instance.
  - Otherwise, select one of Amazon’s default AMIs.
    - Note: The AMI must match the “platform” selected when the Capacity Block was created.  
 ![AMIs](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/b20544930877c196b84db1fda45ea79965c42551.png)

- **Instance Type**
  - Select the `Instance type` that matches the Instance type reserved in the Capacity Block.
  - Then select the SSH `key pair name` that you want to use to access the instance.  
 ![Instance Details](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/9f741b05ce411d2e8623ca4bd5629d2f636039df.png)

- **Network settings**
  - Subnet and Availability Zone
    - Select the `Subnet` that matches the availability zone selected for the Capacity Block.
      - Note that the availability zone ends with a letter, the Subnet must be in the exact same Availability Zone, including the letter.

    - Then select the `Availability Zone` selected for the Capacity Block.

  - Security Groups
    - Finally, select the `Security Group` for the instance.  
 ![Network Settings](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/7d72d9d053cd508c681d394b8bedca36a4abe01b.png)

- **Storage (volumes)**
  - If an AMI is specified in Application and OS Image, a default root volume may be automatically listed here. Additional EBS volumes can be added if needed.

- **Advanced details**
  - ![Advanced Details](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/cefcfa4c787d7cc3ff50f1f9ee8bcc6945a867d6.png)
  - Shutdown behavior
  - Purchase option
  - Capacity Reservation
    - If you have already made a Capacity Blocks reservation, select the Capacity Blocks reservation ID from the Capacity reservation targeted ID drop down list.

  - User data
    - Provide bootstrap shell scripts of `cloud-init` to run at instance startup

A summary of the launch template will be displayed on the right hand side.  
When finalized and ready, select `Create launch template`.

 ![Create Finalized Template - 1](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/d28b1bb456669f0943c1d794d3b069f8a67229b6.png)

A success message will be displayed as well as some suggested next steps.

 ![Success Message](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/3884e8755f9688ab30759be92027bdcf51b4b9c7.png)

To launch an instance based on the Launch Template, select the Launch Template then under the `Actions` button, select the `Launch instance from template`.

 ![Launch Instance](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/96b58f250a6e1508f4b232b5af277f49144cfa61.png)

# Creating a Launch Template From an Existing Instance

Go to the EC2 dashboard and select `Instances` on the left navigation. For the desired instance to use as launch template source, click on the `Instance ID`.

 ![Select Existing Instance](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/a561262d7ee04deea257366b3f0525b12bf3d4ec.png)

Additional instance details, summaries, and options should be shown. Select `Actions`, `Image and templates`, and then `Create template from instance`.

 ![Create Template](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/5bccf9649c9bee85627221d73afa78dfe79acbbb.png)

Provide a name, review and adjust the launch parameters as required. When ready, select `Create launch template`.

 ![Create Finalized Template - 2](https://us1.discourse-cdn.com/flex016/uploads/cloudbank1/original/1X/8f1e80b29aef2825db181dba7ad20419f80ec854.png)
