Launch Template

testgrinder service will be discontinued on January 31, 2025

testgrinder SMPC was discontinued as of February 1, 2024

Launch Templates allow you to capture all parameters you enter when launching a new EC2 instance. The launch template you create will be used by Auto Scaling Group to launch tg-app server instances.

You can manage launch templates on the Launch Templates page in AWS EC2 console at https://console.aws.amazon.com/ec2

Prepare User Data

When defining tg-app launch template you will need to provide User Data that tg-app servers will use on launch to provision configuration files. The easiest way to prepare user data is by exporting it from the standalone tg-app instance that you already have running if you followed this deployment guide. Once the user data is exported, you may need to make some adjustments to it, for example to specify the URI of the database. See Configuration Files for how to work with user data.

Create Launch Template for tg-app

  1. Visit the Launch Template page in AWS EC2 console

  2. Click Create launch template

  3. Launch template name and description:

    1. Launch template name: tg-prod-app

    2. Template version description: tg-app launch template

    3. Auto Scaling Guidance: checked

  4. Application and OS Images (Amazon Machine Image):

    1. Choose Browse more AMIs

    2. Select tab: AWS Marketplace AMIs

    3. Enter in search box: tg-app- and press Enter

    4. From the list select the latest version of tg-app

  5. Instance type: t3a.medium

  6. Key Pair: choose the key pair you intend to use to ssh to testgrinder servers

  7. Network settings:

    1. Subnet: Don't include in launch template

    2. Firewall (security groups): Select existing security group, pick the tg-app security group you created earlier

    3. Advanced network configuration:

      1. Click Add network interface

        1. Auto-assign public IP: Enable

  8. Storage:

    1. Leave default 8GB of General purpose SSD

  9. Resoure tags:

    1. Click Add tag

      1. Key: Name

      2. Value: tg-prod-app

      3. Resource types: Instances

  10. Advanced details:

    1. IAM instance profile: choose tg-app IAM role you created earlier

    2. User Data: paste User Data prepared earlier

  11. Click Create launch template

Last updated