This procedure describes how to create a new managed instance from scratch.

Running single instance workloads on Managed Instance will provide you with a simple and intuitive environment as well as additional visibility tailored to the stateful single-instance use case.


Before you can create a managed instance, you will need to do the following:

Create a new Managed Instance

To create a new Managed Instance from scratch, go to the Managed Instance dashboard on the Spot console and click New Instance on the top right.

Mark the use case Create a New Managed Instance, as shown below, and click Select.

Complete the steps in the Create Managed Instance wizard as described below.

Step 1: Configuration Tab
    • Enter a name and  a description for your Managed Instance:
    • Select the Region and Availability Zones:
    • Fill out Instance settings section.
    • Configure Network and Security settings such as VPC, Key Pair, Security Groups, Subnets and Instance Profile.
    • Choose the Product type and the AMI used to launch the instance.
    • You can specify your our own AMI, or select one of the images suggested in the common images menu.
    • Select a Preferred Instance type. The instance type selected here will be the preferred type for Spot instances, and also used as an On-Demand type to fall back to in case no suitable Spot capacity is available.

  • Once VPC, Subnets, Product, Image and Preferred Instance type are selected, Spotinst will automatically preselect optional similar Spot Markets to ensure optimized cost efficiency. The Spot Market Scoring Table on the right side will be populated:
  • You can edit the additional Spot Market selection via the Spot Instance Types table below.

    Note: The more instance types are selected here, the higher the chance of finding the optimal Spot instance to launch in terms of cost and availability.

  • Fill in any User Data or Shutdown Scripts you would like to run upon instance launch or termination.
  • Shutdown Script requires an Agent to be installed via the User Data. Clicking on the “Add Agent installation to User Data” link will automatically add the required bash script to the User Data section.
  • Add any custom Instance Tags by typing in the Key and Value and clicking “Add”:

  • Fill out any additional settings such as detailed monitoring for Amazon CloudWatch, EBS optimization, Burstable CPU for T2 or 3 instances, IPv6 assignment and Public IP assignment.
  • Click on Next to proceed to the Persistent Resources Tab.
Step 2: Persistent Resources Tab

On this tab you choose which resources your Managed Instance will persist.

  • Select Storage Persistence options.

Note: The creation of a Managed Instance requires at least one of the following persistence options to be selected: Root, Data or Private IP.

  • Root Volume Persistence is preselected by default, but can be toggled.
  • Choose Data Volume Persistence options. Data Volume Persistence comes in one of two methods:
    • Snapshots Backups: Incremental snapshots of the data volumes are continuously saved, and are restored upon instance replacement.
    • Re-Attach: Data volumes are kept through instance termination and are re-attached when a new instance is launched.



  • Proceed to Network Options.
  • Private IP can be persisted by maintaining the Instance’s ENI across replacements.
    • Optionally specify a particular Private IP to maintain.


Note: Persisting Private IP will limit the Managed Instance to a single AZ.

  • Public IP can be persisted by selecting an Elastic IP.

  • Configure Load Balancing.
  • You can set the Managed Instance to receive traffic from Route 53 or a Load Balancer.
  • For Load Balancers, select your Elastic Load Balancer, ALB Target Group or MLB Target Set:
  • For Route 53 select your Hosted Zone, Record Sets and Public IP registration, then click “Add a Record”.
  • Configure Maintenance and Auto Healing options.
  • The Maintenance Window will determine when a Managed Instance may perform proactive replacements, meant to adjust the instance type to your preference, or to revert back to Spot in case a fall-back to On-Demand was made.
  • Auto Healing will perform replacements of instances deemed unhealthy according to the selected health check type.
  • Grace Period is the time (in seconds) to allow an instance to fully boot and applications to start before the first health check.
  • Unhealthy Duration is the amount of time (in seconds) that an instance deemed unhealthy will be kept before it is terminated and replaced with a new one.
  • Next, configure Scheduled Actions.
  • You can choose one of the two options – predetermined Running hours, or custom scheduled actions.
  • With the “Run instance only during these hours” option, once you configure the time window the managed instance will be “Paused” outside of it. At the beginning of the next window, it will be automatically “Resumed” along with its persisted resources.
  • Alternatively you can schedule individual actions, with custom CRON expressions. The following actions are supported:
    • Pause
    • Resume
    • Recycle

  • Once done, click next to  proceed to the Review tab.
Step 3: Review Tab
  • The review tab provides a quick summary of your configuration.

  • In addition, you can view the full JSON file, and turn on Edit mode to edit it manually.


  • Once done, hit Create, and the new Managed Instance will be launched.