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 pulumiusing 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:09Zcron_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 pulumiusing 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
new ManagedInstance(name: string, args: ManagedInstanceArgs, opts?: CustomResourceOptions);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);func NewManagedInstance(ctx *Context, name string, args ManagedInstanceArgs, opts ...ResourceOption) (*ManagedInstance, error)public ManagedInstance(string name, ManagedInstanceArgs args, CustomResourceOptions? opts = null)- 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:
- Image
Id string The ID of the image used to launch the instance.
- Instance
Types List<string> Comma separated list of available instance types for instance.
- Persist
Block boolDevices 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)".- Subnet
Ids List<string> A comma-separated list of subnet identifiers for your instance.
- Vpc
Id string - Auto
Healing bool Enable the auto healing which auto replaces the instance in case the health check fails, default:
“true”.- Block
Devices stringMode Determine the way we attach the data volumes to the data devices. Valid values:
"reattach","onLaunch". Default:"onLaunch".- Cpu
Credits string cpuCredits can have one of two values: “unlimited”, “standard”. Default: unlimited
- Description string
The ManagedInstance description.
- Draining
Timeout 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.
- 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 string Elastic IP Allocation Id to associate to the instance.
- Enable
Monitoring bool Describes whether instance Enhanced Monitoring is enabled. Default: false
- Fall
Back boolTo Od - Grace
Period int The amount of time, in seconds, after the instance has launched to starts and check its health, default
“120".- Health
Check stringType The service to use for the health check. Valid values:
“EC2”,“ELB”,“TARGET_GROUP”,“MULTAI_TARGET_SET”. Default:“EC2”.- Iam
Instance stringProfile Set IAM profile to instance. Set only one of ARN or Name.
- Integration
Route53 Pulumi.Spot Inst. Aws. Inputs. Managed Instance Integration Route53Args - Key
Pair string Specify a Key Pair to attach to the instances.
- Life
Cycle string Set lifecycle, valid values:
“spot”,“on_demand”. Default"spot".- Load
Balancers List<Pulumi.Spot Inst. Aws. Inputs. Managed Instance Load Balancer Args> - Name string
The ManagedInstance name.
- Network
Interfaces List<Pulumi.Spot Inst. Aws. Inputs. Managed Instance Network Interface Args> - Optimization
Windows 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".- Persist
Private boolIp Should the instance maintain its private IP.
- Persist
Root boolDevice Should the instance maintain its root device volumes.
- Placement
Tenancy string Valid values: “default”, “dedicated” Default: default
- Preferred
Type string Preferred instance types for the instance. We will automatically select optional similar instance types to ensure optimized cost efficiency
- Private
Ip string Private IP Allocation Id to associate to the instance.
- Region string
The AWS region your group will be created in.
- Revert
To Pulumi.Spot Spot Inst. Aws. Inputs. Managed Instance Revert To Spot Args - Scheduled
Tasks List<Pulumi.Spot Inst. Aws. Inputs. Managed Instance Scheduled Task Args> - Security
Group List<string>Ids One or more security group IDs.
- Shutdown
Script string The Base64-encoded shutdown script to execute prior to instance termination.
-
List<Pulumi.
Spot Inst. Aws. Inputs. Managed Instance Tag Args> Set tags for the instance. Items should be unique.
- Unhealthy
Duration 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".- User
Data string The Base64-encoded MIME user data to make available to the instances.
- Utilize
Reserved boolInstances In case of any available Reserved Instances, Managed Instance will utilize them before purchasing Spot instances. Default:
"false".
- Image
Id string The ID of the image used to launch the instance.
- Instance
Types []string Comma separated list of available instance types for instance.
- Persist
Block boolDevices 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)".- Subnet
Ids []string A comma-separated list of subnet identifiers for your instance.
- Vpc
Id string - Auto
Healing bool Enable the auto healing which auto replaces the instance in case the health check fails, default:
“true”.- Block
Devices stringMode Determine the way we attach the data volumes to the data devices. Valid values:
"reattach","onLaunch". Default:"onLaunch".- Cpu
Credits string cpuCredits can have one of two values: “unlimited”, “standard”. Default: unlimited
- Description string
The ManagedInstance description.
- Draining
Timeout 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.
- 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 string Elastic IP Allocation Id to associate to the instance.
- Enable
Monitoring bool Describes whether instance Enhanced Monitoring is enabled. Default: false
- Fall
Back boolTo Od - Grace
Period int The amount of time, in seconds, after the instance has launched to starts and check its health, default
“120".- Health
Check stringType The service to use for the health check. Valid values:
“EC2”,“ELB”,“TARGET_GROUP”,“MULTAI_TARGET_SET”. Default:“EC2”.- Iam
Instance stringProfile Set IAM profile to instance. Set only one of ARN or Name.
- Integration
Route53 ManagedInstance Integration Route53 - Key
Pair string Specify a Key Pair to attach to the instances.
- Life
Cycle string Set lifecycle, valid values:
“spot”,“on_demand”. Default"spot".- Load
Balancers []ManagedInstance Load Balancer - Name string
The ManagedInstance name.
- Network
Interfaces []ManagedInstance Network Interface - Optimization
Windows []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".- Persist
Private boolIp Should the instance maintain its private IP.
- Persist
Root boolDevice Should the instance maintain its root device volumes.
- Placement
Tenancy string Valid values: “default”, “dedicated” Default: default
- Preferred
Type string Preferred instance types for the instance. We will automatically select optional similar instance types to ensure optimized cost efficiency
- Private
Ip string Private IP Allocation Id to associate to the instance.
- Region string
The AWS region your group will be created in.
- Revert
To ManagedSpot Instance Revert To Spot - Scheduled
Tasks []ManagedInstance Scheduled Task - Security
Group []stringIds One or more security group IDs.
- Shutdown
Script string The Base64-encoded shutdown script to execute prior to instance termination.
-
[]Managed
Instance Tag Set tags for the instance. Items should be unique.
- Unhealthy
Duration 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".- User
Data string The Base64-encoded MIME user data to make available to the instances.
- Utilize
Reserved boolInstances In case of any available Reserved Instances, Managed Instance will utilize them before purchasing Spot instances. Default:
"false".
- image
Id string The ID of the image used to launch the instance.
- instance
Types string[] Comma separated list of available instance types for instance.
- persist
Block booleanDevices 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)".- subnet
Ids string[] A comma-separated list of subnet identifiers for your instance.
- vpc
Id string - auto
Healing boolean Enable the auto healing which auto replaces the instance in case the health check fails, default:
“true”.- block
Devices stringMode Determine the way we attach the data volumes to the data devices. Valid values:
"reattach","onLaunch". Default:"onLaunch".- cpu
Credits string cpuCredits can have one of two values: “unlimited”, “standard”. Default: unlimited
- description string
The ManagedInstance description.
- draining
Timeout 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.
- ebs
Optimized boolean Enable EBS optimization for supported instance which is not enabled by default. Note - additional charges will be applied. Default: false
- elastic
Ip string Elastic IP Allocation Id to associate to the instance.
- enable
Monitoring boolean Describes whether instance Enhanced Monitoring is enabled. Default: false
- fall
Back booleanTo Od - grace
Period number The amount of time, in seconds, after the instance has launched to starts and check its health, default
“120".- health
Check stringType The service to use for the health check. Valid values:
“EC2”,“ELB”,“TARGET_GROUP”,“MULTAI_TARGET_SET”. Default:“EC2”.- iam
Instance stringProfile Set IAM profile to instance. Set only one of ARN or Name.
- integration
Route53 ManagedInstance Integration Route53 - key
Pair string Specify a Key Pair to attach to the instances.
- life
Cycle string Set lifecycle, valid values:
“spot”,“on_demand”. Default"spot".- load
Balancers ManagedInstance Load Balancer[] - name string
The ManagedInstance name.
- network
Interfaces ManagedInstance Network Interface[] - optimization
Windows 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".- persist
Private booleanIp Should the instance maintain its private IP.
- persist
Root booleanDevice Should the instance maintain its root device volumes.
- placement
Tenancy string Valid values: “default”, “dedicated” Default: default
- preferred
Type string Preferred instance types for the instance. We will automatically select optional similar instance types to ensure optimized cost efficiency
- private
Ip string Private IP Allocation Id to associate to the instance.
- region string
The AWS region your group will be created in.
- revert
To ManagedSpot Instance Revert To Spot - scheduled
Tasks ManagedInstance Scheduled Task[] - security
Group string[]Ids One or more security group IDs.
- shutdown
Script string The Base64-encoded shutdown script to execute prior to instance termination.
-
Managed
Instance Tag[] Set tags for the instance. Items should be unique.
- unhealthy
Duration 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".- user
Data string The Base64-encoded MIME user data to make available to the instances.
- utilize
Reserved booleanInstances 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_ booldevices 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_ strmode 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_ boolto_ od - grace_
period float The amount of time, in seconds, after the instance has launched to starts and check its health, default
“120".- health_
check_ strtype The service to use for the health check. Valid values:
“EC2”,“ELB”,“TARGET_GROUP”,“MULTAI_TARGET_SET”. Default:“EC2”.- iam_
instance_ strprofile Set IAM profile to instance. Set only one of ARN or Name.
- integration_
route53 Dict[ManagedInstance Integration Route53] - 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[ManagedInstance Load Balancer] - name str
The ManagedInstance name.
- network_
interfaces List[ManagedInstance Network Interface] - 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_ boolip Should the instance maintain its private IP.
- persist_
root_ booldevice 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_ Dict[Managedspot Instance Revert To Spot] - scheduled_
tasks List[ManagedInstance Scheduled Task] - security_
group_ List[str]ids One or more security group IDs.
- shutdown_
script str The Base64-encoded shutdown script to execute prior to instance termination.
-
List[Managed
Instance Tag] 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_ boolinstances 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:
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): ManagedInstancestatic 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:
- Auto
Healing bool Enable the auto healing which auto replaces the instance in case the health check fails, default:
“true”.- Block
Devices stringMode Determine the way we attach the data volumes to the data devices. Valid values:
"reattach","onLaunch". Default:"onLaunch".- Cpu
Credits string cpuCredits can have one of two values: “unlimited”, “standard”. Default: unlimited
- Description string
The ManagedInstance description.
- Draining
Timeout 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.
- 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 string Elastic IP Allocation Id to associate to the instance.
- Enable
Monitoring bool Describes whether instance Enhanced Monitoring is enabled. Default: false
- Fall
Back boolTo Od - Grace
Period int The amount of time, in seconds, after the instance has launched to starts and check its health, default
“120".- Health
Check stringType The service to use for the health check. Valid values:
“EC2”,“ELB”,“TARGET_GROUP”,“MULTAI_TARGET_SET”. Default:“EC2”.- Iam
Instance stringProfile Set IAM profile to instance. Set only one of ARN or Name.
- Image
Id string The ID of the image used to launch the instance.
- Instance
Types List<string> Comma separated list of available instance types for instance.
- Integration
Route53 Pulumi.Spot Inst. Aws. Inputs. Managed Instance Integration Route53Args - Key
Pair string Specify a Key Pair to attach to the instances.
- Life
Cycle string Set lifecycle, valid values:
“spot”,“on_demand”. Default"spot".- Load
Balancers List<Pulumi.Spot Inst. Aws. Inputs. Managed Instance Load Balancer Args> - Name string
The ManagedInstance name.
- Network
Interfaces List<Pulumi.Spot Inst. Aws. Inputs. Managed Instance Network Interface Args> - Optimization
Windows 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".- Persist
Block boolDevices Should the instance maintain its Data volumes.
- Persist
Private boolIp Should the instance maintain its private IP.
- Persist
Root boolDevice Should the instance maintain its root device volumes.
- Placement
Tenancy string Valid values: “default”, “dedicated” Default: default
- Preferred
Type string Preferred instance types for the instance. We will automatically select optional similar instance types to ensure optimized cost efficiency
- Private
Ip 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.
- Revert
To Pulumi.Spot Spot Inst. Aws. Inputs. Managed Instance Revert To Spot Args - Scheduled
Tasks List<Pulumi.Spot Inst. Aws. Inputs. Managed Instance Scheduled Task Args> - Security
Group List<string>Ids One or more security group IDs.
- Shutdown
Script string The Base64-encoded shutdown script to execute prior to instance termination.
- Subnet
Ids List<string> A comma-separated list of subnet identifiers for your instance.
-
List<Pulumi.
Spot Inst. Aws. Inputs. Managed Instance Tag Args> Set tags for the instance. Items should be unique.
- Unhealthy
Duration 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".- User
Data string The Base64-encoded MIME user data to make available to the instances.
- Utilize
Reserved boolInstances In case of any available Reserved Instances, Managed Instance will utilize them before purchasing Spot instances. Default:
"false".- Vpc
Id string
- Auto
Healing bool Enable the auto healing which auto replaces the instance in case the health check fails, default:
“true”.- Block
Devices stringMode Determine the way we attach the data volumes to the data devices. Valid values:
"reattach","onLaunch". Default:"onLaunch".- Cpu
Credits string cpuCredits can have one of two values: “unlimited”, “standard”. Default: unlimited
- Description string
The ManagedInstance description.
- Draining
Timeout 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.
- 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 string Elastic IP Allocation Id to associate to the instance.
- Enable
Monitoring bool Describes whether instance Enhanced Monitoring is enabled. Default: false
- Fall
Back boolTo Od - Grace
Period int The amount of time, in seconds, after the instance has launched to starts and check its health, default
“120".- Health
Check stringType The service to use for the health check. Valid values:
“EC2”,“ELB”,“TARGET_GROUP”,“MULTAI_TARGET_SET”. Default:“EC2”.- Iam
Instance stringProfile Set IAM profile to instance. Set only one of ARN or Name.
- Image
Id string The ID of the image used to launch the instance.
- Instance
Types []string Comma separated list of available instance types for instance.
- Integration
Route53 ManagedInstance Integration Route53 - Key
Pair string Specify a Key Pair to attach to the instances.
- Life
Cycle string Set lifecycle, valid values:
“spot”,“on_demand”. Default"spot".- Load
Balancers []ManagedInstance Load Balancer - Name string
The ManagedInstance name.
- Network
Interfaces []ManagedInstance Network Interface - Optimization
Windows []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".- Persist
Block boolDevices Should the instance maintain its Data volumes.
- Persist
Private boolIp Should the instance maintain its private IP.
- Persist
Root boolDevice Should the instance maintain its root device volumes.
- Placement
Tenancy string Valid values: “default”, “dedicated” Default: default
- Preferred
Type string Preferred instance types for the instance. We will automatically select optional similar instance types to ensure optimized cost efficiency
- Private
Ip 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.
- Revert
To ManagedSpot Instance Revert To Spot - Scheduled
Tasks []ManagedInstance Scheduled Task - Security
Group []stringIds One or more security group IDs.
- Shutdown
Script string The Base64-encoded shutdown script to execute prior to instance termination.
- Subnet
Ids []string A comma-separated list of subnet identifiers for your instance.
-
[]Managed
Instance Tag Set tags for the instance. Items should be unique.
- Unhealthy
Duration 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".- User
Data string The Base64-encoded MIME user data to make available to the instances.
- Utilize
Reserved boolInstances In case of any available Reserved Instances, Managed Instance will utilize them before purchasing Spot instances. Default:
"false".- Vpc
Id string
- auto
Healing boolean Enable the auto healing which auto replaces the instance in case the health check fails, default:
“true”.- block
Devices stringMode Determine the way we attach the data volumes to the data devices. Valid values:
"reattach","onLaunch". Default:"onLaunch".- cpu
Credits string cpuCredits can have one of two values: “unlimited”, “standard”. Default: unlimited
- description string
The ManagedInstance description.
- draining
Timeout 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.
- ebs
Optimized boolean Enable EBS optimization for supported instance which is not enabled by default. Note - additional charges will be applied. Default: false
- elastic
Ip string Elastic IP Allocation Id to associate to the instance.
- enable
Monitoring boolean Describes whether instance Enhanced Monitoring is enabled. Default: false
- fall
Back booleanTo Od - grace
Period number The amount of time, in seconds, after the instance has launched to starts and check its health, default
“120".- health
Check stringType The service to use for the health check. Valid values:
“EC2”,“ELB”,“TARGET_GROUP”,“MULTAI_TARGET_SET”. Default:“EC2”.- iam
Instance stringProfile Set IAM profile to instance. Set only one of ARN or Name.
- image
Id string The ID of the image used to launch the instance.
- instance
Types string[] Comma separated list of available instance types for instance.
- integration
Route53 ManagedInstance Integration Route53 - key
Pair string Specify a Key Pair to attach to the instances.
- life
Cycle string Set lifecycle, valid values:
“spot”,“on_demand”. Default"spot".- load
Balancers ManagedInstance Load Balancer[] - name string
The ManagedInstance name.
- network
Interfaces ManagedInstance Network Interface[] - optimization
Windows 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".- persist
Block booleanDevices Should the instance maintain its Data volumes.
- persist
Private booleanIp Should the instance maintain its private IP.
- persist
Root booleanDevice Should the instance maintain its root device volumes.
- placement
Tenancy string Valid values: “default”, “dedicated” Default: default
- preferred
Type string Preferred instance types for the instance. We will automatically select optional similar instance types to ensure optimized cost efficiency
- private
Ip 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.
- revert
To ManagedSpot Instance Revert To Spot - scheduled
Tasks ManagedInstance Scheduled Task[] - security
Group string[]Ids One or more security group IDs.
- shutdown
Script string The Base64-encoded shutdown script to execute prior to instance termination.
- subnet
Ids string[] A comma-separated list of subnet identifiers for your instance.
-
Managed
Instance Tag[] Set tags for the instance. Items should be unique.
- unhealthy
Duration 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".- user
Data string The Base64-encoded MIME user data to make available to the instances.
- utilize
Reserved booleanInstances In case of any available Reserved Instances, Managed Instance will utilize them before purchasing Spot instances. Default:
"false".- vpc
Id string
- auto_
healing bool Enable the auto healing which auto replaces the instance in case the health check fails, default:
“true”.- block_
devices_ strmode 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_ boolto_ od - grace_
period float The amount of time, in seconds, after the instance has launched to starts and check its health, default
“120".- health_
check_ strtype The service to use for the health check. Valid values:
“EC2”,“ELB”,“TARGET_GROUP”,“MULTAI_TARGET_SET”. Default:“EC2”.- iam_
instance_ strprofile 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[ManagedInstance Integration Route53] - 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[ManagedInstance Load Balancer] - name str
The ManagedInstance name.
- network_
interfaces List[ManagedInstance Network Interface] - 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_ booldevices Should the instance maintain its Data volumes.
- persist_
private_ boolip Should the instance maintain its private IP.
- persist_
root_ booldevice 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_ Dict[Managedspot Instance Revert To Spot] - scheduled_
tasks List[ManagedInstance Scheduled Task] - security_
group_ List[str]ids 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.
-
List[Managed
Instance Tag] 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_ boolinstances In case of any available Reserved Instances, Managed Instance will utilize them before purchasing Spot instances. Default:
"false".- vpc_
id str
Supporting Types
ManagedInstanceIntegrationRoute53
ManagedInstanceIntegrationRoute53Domain
ManagedInstanceIntegrationRoute53DomainRecordSet
- Name string
The ManagedInstance name.
- Use
Public boolIp
- Name string
The ManagedInstance name.
- Use
Public boolIp
- name string
The ManagedInstance name.
- use
Public booleanIp
- name str
The ManagedInstance name.
- use
Public boolIp
ManagedInstanceLoadBalancer
- Type string
- Arn string
- Auto
Weight bool - Az
Awareness bool - Balancer
Id string - Name string
The ManagedInstance name.
- Target
Set stringId
- Type string
- Arn string
- Auto
Weight bool - Az
Awareness bool - Balancer
Id string - Name string
The ManagedInstance name.
- Target
Set stringId
- type string
- arn string
- auto
Weight boolean - az
Awareness boolean - balancer
Id string - name string
The ManagedInstance name.
- target
Set stringId
- type str
- arn str
- auto
Weight bool - az
Awareness bool - balancer_
id str - name str
The ManagedInstance name.
- target_
set_ strid
ManagedInstanceNetworkInterface
ManagedInstanceRevertToSpot
ManagedInstanceScheduledTask
ManagedInstanceTag
Package Details
- Repository
- https://github.com/pulumi/pulumi-spotinst
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
spotinstTerraform Provider.