Create an Elastigroup from Scratch- Legacy Design
This procedure describes how to create an Elastigroup using an empty template. To create an Elastigroup based on an existing workload such as AWS Elastic Beanstalk or AutoScaling Groups, choose your workload type under Use Cases and import a copy of your workload configuration.
Prerequisite
Connect your AWS account to Spot.
Get Started
-
In the left menu of the Spot console, click Elastigroup/Groups, and click Create Elastigroup.
-
When the Use Cases page appears, you will need to choose a use case template. Under Empty Template, click Start from Scratch.
Step 1: General
- On the General page, enter the following information:
- Name: The name of your Elastigroup
- Region: The AWS region where your group will be located.
- Description: A brief description describing the purpose of the group.
- Click Next.
Step 2: Compute
-
On the Compute page, complete the following:
- VPC: Choose the VPC in which your Elastigroup will run.
- Product: Choose the OS type to use (e.g., Linux, Red Hat, etc.)
- On-demand Type: Choose the on-demand type to use in the event that no spot instances are available in your desired markets.
-
Choose one or more Availability Zones (AZs) Elastigroup should consider when launching your instances. To maximize your savings, Elastigroup calculates the cost of launching spot instances in the selected AZs. We recommend selecting multiple Availability Zones to increase the number of spot instance markets available for Elastigroup to consider.
-
Subnets: Choose one or more subnets for each AZ you define.
-
Spot Types: Choose the instance types Elastigroup should consider when launching your instances. We recommend selecting multiple instance types to provide Elastigroup with as many Spot instance market options as possible.
tipSelect multiple availability zones and multiple instance types to provide Elastigroup with more spot markets. This will result in lower prices and greater availability.
-
Launch Specification: Define the parameters below.
- Image: Choose the AMI to use for your Elastigroup. The AMI should be based in the same region as your Elastigroup.
- Security Groups: Choose one or more security to apply to your instances.
- Key Pair: Enter the key pair that will be used for authenticating with your instances.
-
Click Next.
Step 3: Predictive Rebalancing
The configuration of predictive rebalancing includes the major parts described below.
Workload Capacity

- Capacity Unit: The units of the number of servers required, either in Instances (default) or vCPU.
- Target: The desired number of instances or vCPUs under normal operation.
- Minimum: The lowest number of instances or vCPUs that can be available.
- Maximum: The highest number of instances or vCPUs that can be available.
- Choose one of the following:
- Set by % of spot instances: Percent of total instances that should be spot instances. The rest will be on-demand instances.
- Set by specific On-Demand count: A specific number of instances that must be On-Demand. The rest will be spot instances. If you chose vCPU as the capacity unit, Elastigroup will choose on-demand instance types that provide the total number of vCPUs requested. For example, if you requested four vCPUs, Elastigroup may choose two instance types with two vCPUs on each (or any other combination meeting the requirement), making a total of four vCPUs.
Optimization Strategy

Fallback to On-Demand
If no spot instances are available, an on-demand instance will be provisioned to meet the capacity requirement.
Utilize Commitment Plans
Elastigroup will automatically provision on-demand instances if there are any vacant Savings Plans or reserved instances that match any instance type defined in the Compute page. The utilization order is: RIs, EC2 SP, Compute SP. Choose one of the following:
- Reserved Instances
- Reserved Instances and Savings Plans
When you choose Utilize Commitment Plans, ensure that your RoleARN is updated with the latest policy.

Cluster Orientation
Specify which prediction algorithm to use:
- Balanced (recommended)
- Availability
- Cost
- Cheapest
Continuous Optimization

- Continuous Optimization: If fallback to on-demand instances has occurred, you can choose when your workload should be returned to spot instances or moved to an instance type that has already-purchased an available reserved capacity. Switch this On (default) to return the instances automatically.
- Choose one of the following:
- Once Available: Your workload will return to spot instances automatically whenever they become available.
- Custom: You define one or more time windows that your workloads can be returned to spot instances. When you choose this option, you will be prompted to fill in the time ranges.
Instance Availability
This option enables you to define availability preferences and gain visibility into EC2 spot instance availability and lifespan. After you define a minimum instance lifetime and your other availability preferences, Spot will do the following:
- Display the resulting market scoring chart showing the probabilities of meeting your specifications.
- Deploy instances that have the highest probability of matching your specifications.

Specify the following:
- Minimum Instance Lifetime: The desired amount of time you wish your workloads to run without any interruption to their underlying instances. The shorter the lifetime you choose, the more accurate the market scoring will be.
- Preferred Availability Zones: Choose one or more of the availability zones that you defined in the Compute tab.
- Preferred Spot Types: Choose one or more of the instance types you defined in the Compute tab.
- Draining Timeout: In addition, you can define the draining period your application requires so the automation will start replacing the instances with enough time before the interruption is predicted to occur, allowing for complete and graceful draining.
When you have finished setting up Predictive Rebalancing, click Next.
Step 4: Scaling (Optional)
Optionally, you can create a Simple Scaling Policy and/or a Target Scaling Policy.
Step 5: Review and Create
When you have finished filling in the information in the template, you can review the configuration and edit it in JSON, CloudFormation or Terraform formats.

After reviewing and making any required changes, click Next and launch your Elastigroup.