ManagedInstance

Provides a Spotinst AWS ManagedInstance resource.

Network Interface - (Optional) List of network interfaces in an EC2 instance.

  • device_index - (Optional) The position of the network interface in the attachment order. A primary network interface has a device index of 0. If you specify a network interface when launching an instance, you must specify the device index.
  • associate_public_ip_address - (Optional) Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is true.
  • associate_ipv6_address - (Optional) Indicates whether to assign an IPv6 address. Amazon EC2 chooses the IPv6 addresses from the range of the subnet. Default: false

Usage:

import * as pulumi from "@pulumi/pulumi";
import pulumi
using Pulumi;

class MyStack : Stack
{
    public MyStack()
    {
    }

}

Scheduled Tasks

Each scheduled_task supports the following:

  • is_enabled - (Optional) Describes whether the task is enabled. When true the task should run when false it should not run.
  • frequency - (Optional) Set frequency for the task. Valid values: “hourly”, “daily”, “weekly”, “continuous”.
  • start_time - (Optional) DATETIME in ISO-8601 format. Sets a start time for scheduled actions. If “frequency” or “cronExpression” are not used - the task will run only once at the start time and will then be deleted from the instance configuration. Example: 2019-05-23T10:55:09Z
  • cron_expression - (Optional) A valid cron expression. For example : “ * * * * * “. The cron is running in UTC time zone and is in Unix cron format Cron Expression Validator Script. Only one of ‘frequency’ or ‘cronExpression’ should be used at a time. Example: 0 1 * * *
  • task_type- (Required) The task type to run. Valid Values: “pause”, “resume”, “recycle”.

Usage:

import * as pulumi from "@pulumi/pulumi";
import pulumi
using Pulumi;

class MyStack : Stack
{
    public MyStack()
    {
    }

}

Load Balancers

  • loadBalancersConfig - (Optional) LB integration object.
    • load_balancers - (Optional) List of load balancers configs. * name - The AWS resource name. Required for Classic Load Balancer. Optional for Application Load Balancer. * arn - The AWS resource ARN (Required only for ALB target groups). * balancer_id - The Multai load balancer ID. Default: lb-123456 * target_set_id - The Multai load target set ID. Default: ts-123456 * auto_weight - “Auto Weight” will automatically provide a higher weight for instances that are larger as appropriate. For example, if you have configured your Elastigroup with m4.large and m4.xlarge instances the m4.large will have half the weight of an m4.xlarge. This ensures that larger instances receive a higher number of MLB requests. * zone_awareness - “AZ Awareness” will ensure that instances within the same AZ are using the corresponding MLB runtime instance in the same AZ. This feature reduces multi-zone data transfer fees. * type - The resource type. Valid Values: CLASSIC, TARGET_GROUP, MULTAI_TARGET_SET.

Usage:

load_balancers {
    arn  = "arn"
    type = "CLASSIC"
    balancer_id   = "lb-123"
    target_set_id = "ts-123"
    auto_weight   = "true"
    az_awareness = "true"
  }

Create a ManagedInstance Resource

def ManagedInstance(resource_name, opts=None, auto_healing=None, block_devices_mode=None, cpu_credits=None, description=None, draining_timeout=None, ebs_optimized=None, elastic_ip=None, enable_monitoring=None, fall_back_to_od=None, grace_period=None, health_check_type=None, iam_instance_profile=None, image_id=None, instance_types=None, integration_route53=None, key_pair=None, life_cycle=None, load_balancers=None, name=None, network_interfaces=None, optimization_windows=None, orientation=None, persist_block_devices=None, persist_private_ip=None, persist_root_device=None, placement_tenancy=None, preferred_type=None, private_ip=None, product=None, region=None, revert_to_spot=None, scheduled_tasks=None, security_group_ids=None, shutdown_script=None, subnet_ids=None, tags=None, unhealthy_duration=None, user_data=None, utilize_reserved_instances=None, vpc_id=None, __props__=None);
name string
The unique name of the resource.
args ManagedInstanceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ManagedInstanceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ManagedInstanceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ManagedInstance Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The ManagedInstance resource accepts the following input properties:

ImageId string

The ID of the image used to launch the instance.

InstanceTypes List<string>

Comma separated list of available instance types for instance.

PersistBlockDevices bool

Should the instance maintain its Data volumes.

Product string

Operation system type. Valid values: "Linux/UNIX", "SUSE Linux", "Windows", "Red Hat Enterprise Linux", "Linux/UNIX (Amazon VPC)", "SUSE Linux (Amazon VPC)", "Windows (Amazon VPC)", "Red Hat Enterprise Linux (Amazon VPC)".

SubnetIds List<string>

A comma-separated list of subnet identifiers for your instance.

VpcId string
AutoHealing bool

Enable the auto healing which auto replaces the instance in case the health check fails, default: “true”.

BlockDevicesMode string

Determine the way we attach the data volumes to the data devices. Valid values: "reattach", "onLaunch". Default: "onLaunch".

CpuCredits string

cpuCredits can have one of two values: “unlimited”, “standard”. Default: unlimited

Description string

The ManagedInstance description.

DrainingTimeout int

The time in seconds to allow the instance be drained from incoming TCP connections and detached from ELB before terminating it, during a scale down operation.

EbsOptimized bool

Enable EBS optimization for supported instance which is not enabled by default. Note - additional charges will be applied. Default: false

ElasticIp string

Elastic IP Allocation Id to associate to the instance.

EnableMonitoring bool

Describes whether instance Enhanced Monitoring is enabled. Default: false

FallBackToOd bool
GracePeriod int

The amount of time, in seconds, after the instance has launched to starts and check its health, default “120".

HealthCheckType string

The service to use for the health check. Valid values: “EC2”, “ELB”, “TARGET_GROUP”, “MULTAI_TARGET_SET”. Default: “EC2”.

IamInstanceProfile string

Set IAM profile to instance. Set only one of ARN or Name.

IntegrationRoute53 Pulumi.SpotInst.Aws.Inputs.ManagedInstanceIntegrationRoute53Args
KeyPair string

Specify a Key Pair to attach to the instances.

LifeCycle string

Set lifecycle, valid values: “spot”, “on_demand”. Default "spot".

LoadBalancers List<Pulumi.SpotInst.Aws.Inputs.ManagedInstanceLoadBalancerArgs>
Name string

The ManagedInstance name.

NetworkInterfaces List<Pulumi.SpotInst.Aws.Inputs.ManagedInstanceNetworkInterfaceArgs>
OptimizationWindows List<string>

When performAt is ‘timeWindow’: must specify a list of ‘timeWindows’ with at least one time window Each string is in the format of - ddd:hh:mm-ddd:hh:mm ddd = day of week = Sun | Mon | Tue | Wed | Thu | Fri | Sat hh = hour 24 = 0 -23 mm = minute = 0 - 59.

Orientation string

Select a prediction strategy. Valid values: "balanced", "costOriented", "availabilityOriented", "cheapest". Default: "availabilityOriented".

PersistPrivateIp bool

Should the instance maintain its private IP.

PersistRootDevice bool

Should the instance maintain its root device volumes.

PlacementTenancy string

Valid values: “default”, “dedicated” Default: default

PreferredType string

Preferred instance types for the instance. We will automatically select optional similar instance types to ensure optimized cost efficiency

PrivateIp string

Private IP Allocation Id to associate to the instance.

Region string

The AWS region your group will be created in.

RevertToSpot Pulumi.SpotInst.Aws.Inputs.ManagedInstanceRevertToSpotArgs
ScheduledTasks List<Pulumi.SpotInst.Aws.Inputs.ManagedInstanceScheduledTaskArgs>
SecurityGroupIds List<string>

One or more security group IDs.

ShutdownScript string

The Base64-encoded shutdown script to execute prior to instance termination.

Tags List<Pulumi.SpotInst.Aws.Inputs.ManagedInstanceTagArgs>

Set tags for the instance. Items should be unique.

UnhealthyDuration int

The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced, default “120".

UserData string

The Base64-encoded MIME user data to make available to the instances.

UtilizeReservedInstances bool

In case of any available Reserved Instances, Managed Instance will utilize them before purchasing Spot instances. Default: "false".

ImageId string

The ID of the image used to launch the instance.

InstanceTypes []string

Comma separated list of available instance types for instance.

PersistBlockDevices bool

Should the instance maintain its Data volumes.

Product string

Operation system type. Valid values: "Linux/UNIX", "SUSE Linux", "Windows", "Red Hat Enterprise Linux", "Linux/UNIX (Amazon VPC)", "SUSE Linux (Amazon VPC)", "Windows (Amazon VPC)", "Red Hat Enterprise Linux (Amazon VPC)".

SubnetIds []string

A comma-separated list of subnet identifiers for your instance.

VpcId string
AutoHealing bool

Enable the auto healing which auto replaces the instance in case the health check fails, default: “true”.

BlockDevicesMode string

Determine the way we attach the data volumes to the data devices. Valid values: "reattach", "onLaunch". Default: "onLaunch".

CpuCredits string

cpuCredits can have one of two values: “unlimited”, “standard”. Default: unlimited

Description string

The ManagedInstance description.

DrainingTimeout int

The time in seconds to allow the instance be drained from incoming TCP connections and detached from ELB before terminating it, during a scale down operation.

EbsOptimized bool

Enable EBS optimization for supported instance which is not enabled by default. Note - additional charges will be applied. Default: false

ElasticIp string

Elastic IP Allocation Id to associate to the instance.

EnableMonitoring bool

Describes whether instance Enhanced Monitoring is enabled. Default: false

FallBackToOd bool
GracePeriod int

The amount of time, in seconds, after the instance has launched to starts and check its health, default “120".

HealthCheckType string

The service to use for the health check. Valid values: “EC2”, “ELB”, “TARGET_GROUP”, “MULTAI_TARGET_SET”. Default: “EC2”.

IamInstanceProfile string

Set IAM profile to instance. Set only one of ARN or Name.

IntegrationRoute53 ManagedInstanceIntegrationRoute53
KeyPair string

Specify a Key Pair to attach to the instances.

LifeCycle string

Set lifecycle, valid values: “spot”, “on_demand”. Default "spot".

LoadBalancers []ManagedInstanceLoadBalancer
Name string

The ManagedInstance name.

NetworkInterfaces []ManagedInstanceNetworkInterface
OptimizationWindows []string

When performAt is ‘timeWindow’: must specify a list of ‘timeWindows’ with at least one time window Each string is in the format of - ddd:hh:mm-ddd:hh:mm ddd = day of week = Sun | Mon | Tue | Wed | Thu | Fri | Sat hh = hour 24 = 0 -23 mm = minute = 0 - 59.

Orientation string

Select a prediction strategy. Valid values: "balanced", "costOriented", "availabilityOriented", "cheapest". Default: "availabilityOriented".

PersistPrivateIp bool

Should the instance maintain its private IP.

PersistRootDevice bool

Should the instance maintain its root device volumes.

PlacementTenancy string

Valid values: “default”, “dedicated” Default: default

PreferredType string

Preferred instance types for the instance. We will automatically select optional similar instance types to ensure optimized cost efficiency

PrivateIp string

Private IP Allocation Id to associate to the instance.

Region string

The AWS region your group will be created in.

RevertToSpot ManagedInstanceRevertToSpot
ScheduledTasks []ManagedInstanceScheduledTask
SecurityGroupIds []string

One or more security group IDs.

ShutdownScript string

The Base64-encoded shutdown script to execute prior to instance termination.

Tags []ManagedInstanceTag

Set tags for the instance. Items should be unique.

UnhealthyDuration int

The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced, default “120".

UserData string

The Base64-encoded MIME user data to make available to the instances.

UtilizeReservedInstances bool

In case of any available Reserved Instances, Managed Instance will utilize them before purchasing Spot instances. Default: "false".

imageId string

The ID of the image used to launch the instance.

instanceTypes string[]

Comma separated list of available instance types for instance.

persistBlockDevices boolean

Should the instance maintain its Data volumes.

product string

Operation system type. Valid values: "Linux/UNIX", "SUSE Linux", "Windows", "Red Hat Enterprise Linux", "Linux/UNIX (Amazon VPC)", "SUSE Linux (Amazon VPC)", "Windows (Amazon VPC)", "Red Hat Enterprise Linux (Amazon VPC)".

subnetIds string[]

A comma-separated list of subnet identifiers for your instance.

vpcId string
autoHealing boolean

Enable the auto healing which auto replaces the instance in case the health check fails, default: “true”.

blockDevicesMode string

Determine the way we attach the data volumes to the data devices. Valid values: "reattach", "onLaunch". Default: "onLaunch".

cpuCredits string

cpuCredits can have one of two values: “unlimited”, “standard”. Default: unlimited

description string

The ManagedInstance description.

drainingTimeout number

The time in seconds to allow the instance be drained from incoming TCP connections and detached from ELB before terminating it, during a scale down operation.

ebsOptimized boolean

Enable EBS optimization for supported instance which is not enabled by default. Note - additional charges will be applied. Default: false

elasticIp string

Elastic IP Allocation Id to associate to the instance.

enableMonitoring boolean

Describes whether instance Enhanced Monitoring is enabled. Default: false

fallBackToOd boolean
gracePeriod number

The amount of time, in seconds, after the instance has launched to starts and check its health, default “120".

healthCheckType string

The service to use for the health check. Valid values: “EC2”, “ELB”, “TARGET_GROUP”, “MULTAI_TARGET_SET”. Default: “EC2”.

iamInstanceProfile string

Set IAM profile to instance. Set only one of ARN or Name.

integrationRoute53 ManagedInstanceIntegrationRoute53
keyPair string

Specify a Key Pair to attach to the instances.

lifeCycle string

Set lifecycle, valid values: “spot”, “on_demand”. Default "spot".

loadBalancers ManagedInstanceLoadBalancer[]
name string

The ManagedInstance name.

networkInterfaces ManagedInstanceNetworkInterface[]
optimizationWindows string[]

When performAt is ‘timeWindow’: must specify a list of ‘timeWindows’ with at least one time window Each string is in the format of - ddd:hh:mm-ddd:hh:mm ddd = day of week = Sun | Mon | Tue | Wed | Thu | Fri | Sat hh = hour 24 = 0 -23 mm = minute = 0 - 59.

orientation string

Select a prediction strategy. Valid values: "balanced", "costOriented", "availabilityOriented", "cheapest". Default: "availabilityOriented".

persistPrivateIp boolean

Should the instance maintain its private IP.

persistRootDevice boolean

Should the instance maintain its root device volumes.

placementTenancy string

Valid values: “default”, “dedicated” Default: default

preferredType string

Preferred instance types for the instance. We will automatically select optional similar instance types to ensure optimized cost efficiency

privateIp string

Private IP Allocation Id to associate to the instance.

region string

The AWS region your group will be created in.

revertToSpot ManagedInstanceRevertToSpot
scheduledTasks ManagedInstanceScheduledTask[]
securityGroupIds string[]

One or more security group IDs.

shutdownScript string

The Base64-encoded shutdown script to execute prior to instance termination.

tags ManagedInstanceTag[]

Set tags for the instance. Items should be unique.

unhealthyDuration number

The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced, default “120".

userData string

The Base64-encoded MIME user data to make available to the instances.

utilizeReservedInstances boolean

In case of any available Reserved Instances, Managed Instance will utilize them before purchasing Spot instances. Default: "false".

image_id str

The ID of the image used to launch the instance.

instance_types List[str]

Comma separated list of available instance types for instance.

persist_block_devices bool

Should the instance maintain its Data volumes.

product str

Operation system type. Valid values: "Linux/UNIX", "SUSE Linux", "Windows", "Red Hat Enterprise Linux", "Linux/UNIX (Amazon VPC)", "SUSE Linux (Amazon VPC)", "Windows (Amazon VPC)", "Red Hat Enterprise Linux (Amazon VPC)".

subnet_ids List[str]

A comma-separated list of subnet identifiers for your instance.

vpc_id str
auto_healing bool

Enable the auto healing which auto replaces the instance in case the health check fails, default: “true”.

block_devices_mode str

Determine the way we attach the data volumes to the data devices. Valid values: "reattach", "onLaunch". Default: "onLaunch".

cpu_credits str

cpuCredits can have one of two values: “unlimited”, “standard”. Default: unlimited

description str

The ManagedInstance description.

draining_timeout float

The time in seconds to allow the instance be drained from incoming TCP connections and detached from ELB before terminating it, during a scale down operation.

ebs_optimized bool

Enable EBS optimization for supported instance which is not enabled by default. Note - additional charges will be applied. Default: false

elastic_ip str

Elastic IP Allocation Id to associate to the instance.

enable_monitoring bool

Describes whether instance Enhanced Monitoring is enabled. Default: false

fall_back_to_od bool
grace_period float

The amount of time, in seconds, after the instance has launched to starts and check its health, default “120".

health_check_type str

The service to use for the health check. Valid values: “EC2”, “ELB”, “TARGET_GROUP”, “MULTAI_TARGET_SET”. Default: “EC2”.

iam_instance_profile str

Set IAM profile to instance. Set only one of ARN or Name.

integration_route53 Dict[ManagedInstanceIntegrationRoute53]
key_pair str

Specify a Key Pair to attach to the instances.

life_cycle str

Set lifecycle, valid values: “spot”, “on_demand”. Default "spot".

load_balancers List[ManagedInstanceLoadBalancer]
name str

The ManagedInstance name.

network_interfaces List[ManagedInstanceNetworkInterface]
optimization_windows List[str]

When performAt is ‘timeWindow’: must specify a list of ‘timeWindows’ with at least one time window Each string is in the format of - ddd:hh:mm-ddd:hh:mm ddd = day of week = Sun | Mon | Tue | Wed | Thu | Fri | Sat hh = hour 24 = 0 -23 mm = minute = 0 - 59.

orientation str

Select a prediction strategy. Valid values: "balanced", "costOriented", "availabilityOriented", "cheapest". Default: "availabilityOriented".

persist_private_ip bool

Should the instance maintain its private IP.

persist_root_device bool

Should the instance maintain its root device volumes.

placement_tenancy str

Valid values: “default”, “dedicated” Default: default

preferred_type str

Preferred instance types for the instance. We will automatically select optional similar instance types to ensure optimized cost efficiency

private_ip str

Private IP Allocation Id to associate to the instance.

region str

The AWS region your group will be created in.

revert_to_spot Dict[ManagedInstanceRevertToSpot]
scheduled_tasks List[ManagedInstanceScheduledTask]
security_group_ids List[str]

One or more security group IDs.

shutdown_script str

The Base64-encoded shutdown script to execute prior to instance termination.

tags List[ManagedInstanceTag]

Set tags for the instance. Items should be unique.

unhealthy_duration float

The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced, default “120".

user_data str

The Base64-encoded MIME user data to make available to the instances.

utilize_reserved_instances bool

In case of any available Reserved Instances, Managed Instance will utilize them before purchasing Spot instances. Default: "false".

Outputs

All input properties are implicitly available as output properties. Additionally, the ManagedInstance resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing ManagedInstance Resource

Get an existing ManagedInstance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ManagedInstanceState, opts?: CustomResourceOptions): ManagedInstance
static get(resource_name, id, opts=None, auto_healing=None, block_devices_mode=None, cpu_credits=None, description=None, draining_timeout=None, ebs_optimized=None, elastic_ip=None, enable_monitoring=None, fall_back_to_od=None, grace_period=None, health_check_type=None, iam_instance_profile=None, image_id=None, instance_types=None, integration_route53=None, key_pair=None, life_cycle=None, load_balancers=None, name=None, network_interfaces=None, optimization_windows=None, orientation=None, persist_block_devices=None, persist_private_ip=None, persist_root_device=None, placement_tenancy=None, preferred_type=None, private_ip=None, product=None, region=None, revert_to_spot=None, scheduled_tasks=None, security_group_ids=None, shutdown_script=None, subnet_ids=None, tags=None, unhealthy_duration=None, user_data=None, utilize_reserved_instances=None, vpc_id=None, __props__=None);
func GetManagedInstance(ctx *Context, name string, id IDInput, state *ManagedInstanceState, opts ...ResourceOption) (*ManagedInstance, error)
public static ManagedInstance Get(string name, Input<string> id, ManagedInstanceState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

AutoHealing bool

Enable the auto healing which auto replaces the instance in case the health check fails, default: “true”.

BlockDevicesMode string

Determine the way we attach the data volumes to the data devices. Valid values: "reattach", "onLaunch". Default: "onLaunch".

CpuCredits string

cpuCredits can have one of two values: “unlimited”, “standard”. Default: unlimited

Description string

The ManagedInstance description.

DrainingTimeout int

The time in seconds to allow the instance be drained from incoming TCP connections and detached from ELB before terminating it, during a scale down operation.

EbsOptimized bool

Enable EBS optimization for supported instance which is not enabled by default. Note - additional charges will be applied. Default: false

ElasticIp string

Elastic IP Allocation Id to associate to the instance.

EnableMonitoring bool

Describes whether instance Enhanced Monitoring is enabled. Default: false

FallBackToOd bool
GracePeriod int

The amount of time, in seconds, after the instance has launched to starts and check its health, default “120".

HealthCheckType string

The service to use for the health check. Valid values: “EC2”, “ELB”, “TARGET_GROUP”, “MULTAI_TARGET_SET”. Default: “EC2”.

IamInstanceProfile string

Set IAM profile to instance. Set only one of ARN or Name.

ImageId string

The ID of the image used to launch the instance.

InstanceTypes List<string>

Comma separated list of available instance types for instance.

IntegrationRoute53 Pulumi.SpotInst.Aws.Inputs.ManagedInstanceIntegrationRoute53Args
KeyPair string

Specify a Key Pair to attach to the instances.

LifeCycle string

Set lifecycle, valid values: “spot”, “on_demand”. Default "spot".

LoadBalancers List<Pulumi.SpotInst.Aws.Inputs.ManagedInstanceLoadBalancerArgs>
Name string

The ManagedInstance name.

NetworkInterfaces List<Pulumi.SpotInst.Aws.Inputs.ManagedInstanceNetworkInterfaceArgs>
OptimizationWindows List<string>

When performAt is ‘timeWindow’: must specify a list of ‘timeWindows’ with at least one time window Each string is in the format of - ddd:hh:mm-ddd:hh:mm ddd = day of week = Sun | Mon | Tue | Wed | Thu | Fri | Sat hh = hour 24 = 0 -23 mm = minute = 0 - 59.

Orientation string

Select a prediction strategy. Valid values: "balanced", "costOriented", "availabilityOriented", "cheapest". Default: "availabilityOriented".

PersistBlockDevices bool

Should the instance maintain its Data volumes.

PersistPrivateIp bool

Should the instance maintain its private IP.

PersistRootDevice bool

Should the instance maintain its root device volumes.

PlacementTenancy string

Valid values: “default”, “dedicated” Default: default

PreferredType string

Preferred instance types for the instance. We will automatically select optional similar instance types to ensure optimized cost efficiency

PrivateIp string

Private IP Allocation Id to associate to the instance.

Product string

Operation system type. Valid values: "Linux/UNIX", "SUSE Linux", "Windows", "Red Hat Enterprise Linux", "Linux/UNIX (Amazon VPC)", "SUSE Linux (Amazon VPC)", "Windows (Amazon VPC)", "Red Hat Enterprise Linux (Amazon VPC)".

Region string

The AWS region your group will be created in.

RevertToSpot Pulumi.SpotInst.Aws.Inputs.ManagedInstanceRevertToSpotArgs
ScheduledTasks List<Pulumi.SpotInst.Aws.Inputs.ManagedInstanceScheduledTaskArgs>
SecurityGroupIds List<string>

One or more security group IDs.

ShutdownScript string

The Base64-encoded shutdown script to execute prior to instance termination.

SubnetIds List<string>

A comma-separated list of subnet identifiers for your instance.

Tags List<Pulumi.SpotInst.Aws.Inputs.ManagedInstanceTagArgs>

Set tags for the instance. Items should be unique.

UnhealthyDuration int

The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced, default “120".

UserData string

The Base64-encoded MIME user data to make available to the instances.

UtilizeReservedInstances bool

In case of any available Reserved Instances, Managed Instance will utilize them before purchasing Spot instances. Default: "false".

VpcId string
AutoHealing bool

Enable the auto healing which auto replaces the instance in case the health check fails, default: “true”.

BlockDevicesMode string

Determine the way we attach the data volumes to the data devices. Valid values: "reattach", "onLaunch". Default: "onLaunch".

CpuCredits string

cpuCredits can have one of two values: “unlimited”, “standard”. Default: unlimited

Description string

The ManagedInstance description.

DrainingTimeout int

The time in seconds to allow the instance be drained from incoming TCP connections and detached from ELB before terminating it, during a scale down operation.

EbsOptimized bool

Enable EBS optimization for supported instance which is not enabled by default. Note - additional charges will be applied. Default: false

ElasticIp string

Elastic IP Allocation Id to associate to the instance.

EnableMonitoring bool

Describes whether instance Enhanced Monitoring is enabled. Default: false

FallBackToOd bool
GracePeriod int

The amount of time, in seconds, after the instance has launched to starts and check its health, default “120".

HealthCheckType string

The service to use for the health check. Valid values: “EC2”, “ELB”, “TARGET_GROUP”, “MULTAI_TARGET_SET”. Default: “EC2”.

IamInstanceProfile string

Set IAM profile to instance. Set only one of ARN or Name.

ImageId string

The ID of the image used to launch the instance.

InstanceTypes []string

Comma separated list of available instance types for instance.

IntegrationRoute53 ManagedInstanceIntegrationRoute53
KeyPair string

Specify a Key Pair to attach to the instances.

LifeCycle string

Set lifecycle, valid values: “spot”, “on_demand”. Default "spot".

LoadBalancers []ManagedInstanceLoadBalancer
Name string

The ManagedInstance name.

NetworkInterfaces []ManagedInstanceNetworkInterface
OptimizationWindows []string

When performAt is ‘timeWindow’: must specify a list of ‘timeWindows’ with at least one time window Each string is in the format of - ddd:hh:mm-ddd:hh:mm ddd = day of week = Sun | Mon | Tue | Wed | Thu | Fri | Sat hh = hour 24 = 0 -23 mm = minute = 0 - 59.

Orientation string

Select a prediction strategy. Valid values: "balanced", "costOriented", "availabilityOriented", "cheapest". Default: "availabilityOriented".

PersistBlockDevices bool

Should the instance maintain its Data volumes.

PersistPrivateIp bool

Should the instance maintain its private IP.

PersistRootDevice bool

Should the instance maintain its root device volumes.

PlacementTenancy string

Valid values: “default”, “dedicated” Default: default

PreferredType string

Preferred instance types for the instance. We will automatically select optional similar instance types to ensure optimized cost efficiency

PrivateIp string

Private IP Allocation Id to associate to the instance.

Product string

Operation system type. Valid values: "Linux/UNIX", "SUSE Linux", "Windows", "Red Hat Enterprise Linux", "Linux/UNIX (Amazon VPC)", "SUSE Linux (Amazon VPC)", "Windows (Amazon VPC)", "Red Hat Enterprise Linux (Amazon VPC)".

Region string

The AWS region your group will be created in.

RevertToSpot ManagedInstanceRevertToSpot
ScheduledTasks []ManagedInstanceScheduledTask
SecurityGroupIds []string

One or more security group IDs.

ShutdownScript string

The Base64-encoded shutdown script to execute prior to instance termination.

SubnetIds []string

A comma-separated list of subnet identifiers for your instance.

Tags []ManagedInstanceTag

Set tags for the instance. Items should be unique.

UnhealthyDuration int

The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced, default “120".

UserData string

The Base64-encoded MIME user data to make available to the instances.

UtilizeReservedInstances bool

In case of any available Reserved Instances, Managed Instance will utilize them before purchasing Spot instances. Default: "false".

VpcId string
autoHealing boolean

Enable the auto healing which auto replaces the instance in case the health check fails, default: “true”.

blockDevicesMode string

Determine the way we attach the data volumes to the data devices. Valid values: "reattach", "onLaunch". Default: "onLaunch".

cpuCredits string

cpuCredits can have one of two values: “unlimited”, “standard”. Default: unlimited

description string

The ManagedInstance description.

drainingTimeout number

The time in seconds to allow the instance be drained from incoming TCP connections and detached from ELB before terminating it, during a scale down operation.

ebsOptimized boolean

Enable EBS optimization for supported instance which is not enabled by default. Note - additional charges will be applied. Default: false

elasticIp string

Elastic IP Allocation Id to associate to the instance.

enableMonitoring boolean

Describes whether instance Enhanced Monitoring is enabled. Default: false

fallBackToOd boolean
gracePeriod number

The amount of time, in seconds, after the instance has launched to starts and check its health, default “120".

healthCheckType string

The service to use for the health check. Valid values: “EC2”, “ELB”, “TARGET_GROUP”, “MULTAI_TARGET_SET”. Default: “EC2”.

iamInstanceProfile string

Set IAM profile to instance. Set only one of ARN or Name.

imageId string

The ID of the image used to launch the instance.

instanceTypes string[]

Comma separated list of available instance types for instance.

integrationRoute53 ManagedInstanceIntegrationRoute53
keyPair string

Specify a Key Pair to attach to the instances.

lifeCycle string

Set lifecycle, valid values: “spot”, “on_demand”. Default "spot".

loadBalancers ManagedInstanceLoadBalancer[]
name string

The ManagedInstance name.

networkInterfaces ManagedInstanceNetworkInterface[]
optimizationWindows string[]

When performAt is ‘timeWindow’: must specify a list of ‘timeWindows’ with at least one time window Each string is in the format of - ddd:hh:mm-ddd:hh:mm ddd = day of week = Sun | Mon | Tue | Wed | Thu | Fri | Sat hh = hour 24 = 0 -23 mm = minute = 0 - 59.

orientation string

Select a prediction strategy. Valid values: "balanced", "costOriented", "availabilityOriented", "cheapest". Default: "availabilityOriented".

persistBlockDevices boolean

Should the instance maintain its Data volumes.

persistPrivateIp boolean

Should the instance maintain its private IP.

persistRootDevice boolean

Should the instance maintain its root device volumes.

placementTenancy string

Valid values: “default”, “dedicated” Default: default

preferredType string

Preferred instance types for the instance. We will automatically select optional similar instance types to ensure optimized cost efficiency

privateIp string

Private IP Allocation Id to associate to the instance.

product string

Operation system type. Valid values: "Linux/UNIX", "SUSE Linux", "Windows", "Red Hat Enterprise Linux", "Linux/UNIX (Amazon VPC)", "SUSE Linux (Amazon VPC)", "Windows (Amazon VPC)", "Red Hat Enterprise Linux (Amazon VPC)".

region string

The AWS region your group will be created in.

revertToSpot ManagedInstanceRevertToSpot
scheduledTasks ManagedInstanceScheduledTask[]
securityGroupIds string[]

One or more security group IDs.

shutdownScript string

The Base64-encoded shutdown script to execute prior to instance termination.

subnetIds string[]

A comma-separated list of subnet identifiers for your instance.

tags ManagedInstanceTag[]

Set tags for the instance. Items should be unique.

unhealthyDuration number

The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced, default “120".

userData string

The Base64-encoded MIME user data to make available to the instances.

utilizeReservedInstances boolean

In case of any available Reserved Instances, Managed Instance will utilize them before purchasing Spot instances. Default: "false".

vpcId string
auto_healing bool

Enable the auto healing which auto replaces the instance in case the health check fails, default: “true”.

block_devices_mode str

Determine the way we attach the data volumes to the data devices. Valid values: "reattach", "onLaunch". Default: "onLaunch".

cpu_credits str

cpuCredits can have one of two values: “unlimited”, “standard”. Default: unlimited

description str

The ManagedInstance description.

draining_timeout float

The time in seconds to allow the instance be drained from incoming TCP connections and detached from ELB before terminating it, during a scale down operation.

ebs_optimized bool

Enable EBS optimization for supported instance which is not enabled by default. Note - additional charges will be applied. Default: false

elastic_ip str

Elastic IP Allocation Id to associate to the instance.

enable_monitoring bool

Describes whether instance Enhanced Monitoring is enabled. Default: false

fall_back_to_od bool
grace_period float

The amount of time, in seconds, after the instance has launched to starts and check its health, default “120".

health_check_type str

The service to use for the health check. Valid values: “EC2”, “ELB”, “TARGET_GROUP”, “MULTAI_TARGET_SET”. Default: “EC2”.

iam_instance_profile str

Set IAM profile to instance. Set only one of ARN or Name.

image_id str

The ID of the image used to launch the instance.

instance_types List[str]

Comma separated list of available instance types for instance.

integration_route53 Dict[ManagedInstanceIntegrationRoute53]
key_pair str

Specify a Key Pair to attach to the instances.

life_cycle str

Set lifecycle, valid values: “spot”, “on_demand”. Default "spot".

load_balancers List[ManagedInstanceLoadBalancer]
name str

The ManagedInstance name.

network_interfaces List[ManagedInstanceNetworkInterface]
optimization_windows List[str]

When performAt is ‘timeWindow’: must specify a list of ‘timeWindows’ with at least one time window Each string is in the format of - ddd:hh:mm-ddd:hh:mm ddd = day of week = Sun | Mon | Tue | Wed | Thu | Fri | Sat hh = hour 24 = 0 -23 mm = minute = 0 - 59.

orientation str

Select a prediction strategy. Valid values: "balanced", "costOriented", "availabilityOriented", "cheapest". Default: "availabilityOriented".

persist_block_devices bool

Should the instance maintain its Data volumes.

persist_private_ip bool

Should the instance maintain its private IP.

persist_root_device bool

Should the instance maintain its root device volumes.

placement_tenancy str

Valid values: “default”, “dedicated” Default: default

preferred_type str

Preferred instance types for the instance. We will automatically select optional similar instance types to ensure optimized cost efficiency

private_ip str

Private IP Allocation Id to associate to the instance.

product str

Operation system type. Valid values: "Linux/UNIX", "SUSE Linux", "Windows", "Red Hat Enterprise Linux", "Linux/UNIX (Amazon VPC)", "SUSE Linux (Amazon VPC)", "Windows (Amazon VPC)", "Red Hat Enterprise Linux (Amazon VPC)".

region str

The AWS region your group will be created in.

revert_to_spot Dict[ManagedInstanceRevertToSpot]
scheduled_tasks List[ManagedInstanceScheduledTask]
security_group_ids List[str]

One or more security group IDs.

shutdown_script str

The Base64-encoded shutdown script to execute prior to instance termination.

subnet_ids List[str]

A comma-separated list of subnet identifiers for your instance.

tags List[ManagedInstanceTag]

Set tags for the instance. Items should be unique.

unhealthy_duration float

The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced, default “120".

user_data str

The Base64-encoded MIME user data to make available to the instances.

utilize_reserved_instances bool

In case of any available Reserved Instances, Managed Instance will utilize them before purchasing Spot instances. Default: "false".

vpc_id str

Supporting Types

ManagedInstanceIntegrationRoute53

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Domains List<Pulumi.SpotInst.Aws.Inputs.ManagedInstanceIntegrationRoute53DomainArgs>
Domains []ManagedInstanceIntegrationRoute53Domain
domains ManagedInstanceIntegrationRoute53Domain[]
domains List[ManagedInstanceIntegrationRoute53Domain]

ManagedInstanceIntegrationRoute53Domain

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

HostedZoneId string
RecordSets List<Pulumi.SpotInst.Aws.Inputs.ManagedInstanceIntegrationRoute53DomainRecordSetArgs>
SpotinstAcctId string
HostedZoneId string
RecordSets []ManagedInstanceIntegrationRoute53DomainRecordSet
SpotinstAcctId string
hostedZoneId string
recordSets ManagedInstanceIntegrationRoute53DomainRecordSet[]
spotinstAcctId string
hostedZoneId str
recordSets List[ManagedInstanceIntegrationRoute53DomainRecordSet]
spotinstAcctId str

ManagedInstanceIntegrationRoute53DomainRecordSet

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Name string

The ManagedInstance name.

UsePublicIp bool
Name string

The ManagedInstance name.

UsePublicIp bool
name string

The ManagedInstance name.

usePublicIp boolean
name str

The ManagedInstance name.

usePublicIp bool

ManagedInstanceLoadBalancer

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Type string
Arn string
AutoWeight bool
AzAwareness bool
BalancerId string
Name string

The ManagedInstance name.

TargetSetId string
Type string
Arn string
AutoWeight bool
AzAwareness bool
BalancerId string
Name string

The ManagedInstance name.

TargetSetId string
type string
arn string
autoWeight boolean
azAwareness boolean
balancerId string
name string

The ManagedInstance name.

targetSetId string
type str
arn str
autoWeight bool
azAwareness bool
balancer_id str
name str

The ManagedInstance name.

target_set_id str

ManagedInstanceNetworkInterface

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

DeviceIndex string
AssociateIpv6Address bool
AssociatePublicIpAddress bool
DeviceIndex string
AssociateIpv6Address bool
AssociatePublicIpAddress bool
deviceIndex string
associateIpv6Address boolean
associatePublicIpAddress boolean
deviceIndex str
associateIpv6Address bool
associate_public_ip_address bool

ManagedInstanceRevertToSpot

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

PerformAt string

Valid values: “always”, “never”, “timeWindow”. Default "never".

PerformAt string

Valid values: “always”, “never”, “timeWindow”. Default "never".

performAt string

Valid values: “always”, “never”, “timeWindow”. Default "never".

performAt str

Valid values: “always”, “never”, “timeWindow”. Default "never".

ManagedInstanceScheduledTask

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

TaskType string
CronExpression string
Frequency string
IsEnabled bool
StartTime string
TaskType string
CronExpression string
Frequency string
IsEnabled bool
StartTime string
taskType string
cronExpression string
frequency string
isEnabled boolean
startTime string
taskType str
cronExpression str
frequency str
isEnabled bool
startTime str

ManagedInstanceTag

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Key string

Tag’s key.

Value string

Tag’s name.

Key string

Tag’s key.

Value string

Tag’s name.

key string

Tag’s key.

value string

Tag’s name.

key str

Tag’s key.

value str

Tag’s name.

Package Details

Repository
https://github.com/pulumi/pulumi-spotinst
License
Apache-2.0
Notes
This Pulumi package is based on the spotinst Terraform Provider.