AutoProvisioningGroup
Provides a ECS auto provisioning group resource which is a solution that uses preemptive instances and pay_as_you_go instances to rapidly deploy clusters.
NOTE: Available in 1.79.0+
Block config
The config mapping supports the following:
* instance_type - (Optional) The instance type of the Nth extended configurations of the launch template.
* max_price - (Required) The maximum price of the instance type specified in the Nth extended configurations of the launch template.
* vswitch_id - (Required) The ID of the VSwitch in the Nth extended configurations of the launch template.
* weighted_capacity - (Optional) The weight of the instance type specified in the Nth extended configurations of the launch template.
* priority - (Optional) The priority of the instance type specified in the Nth extended configurations of the launch template. A value of 0 indicates the highest priority.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var config = new Config();
var name = config.Get("name") ?? "auto_provisioning_group";
var defaultZones = Output.Create(AliCloud.GetZones.InvokeAsync(new AliCloud.GetZonesArgs
{
AvailableDiskCategory = "cloud_efficiency",
AvailableResourceCreation = "VSwitch",
}));
var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new AliCloud.Vpc.NetworkArgs
{
CidrBlock = "172.16.0.0/16",
});
var defaultSwitch = new AliCloud.Vpc.Switch("defaultSwitch", new AliCloud.Vpc.SwitchArgs
{
AvailabilityZone = defaultZones.Apply(defaultZones => defaultZones.Zones[0].Id),
CidrBlock = "172.16.0.0/24",
VpcId = defaultNetwork.Id,
});
var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("defaultSecurityGroup", new AliCloud.Ecs.SecurityGroupArgs
{
VpcId = defaultNetwork.Id,
});
var defaultImages = Output.Create(AliCloud.Ecs.GetImages.InvokeAsync(new AliCloud.Ecs.GetImagesArgs
{
MostRecent = true,
NameRegex = "^ubuntu_18.*64",
Owners = "system",
}));
var template = new AliCloud.Ecs.LaunchTemplate("template", new AliCloud.Ecs.LaunchTemplateArgs
{
ImageId = defaultImages.Apply(defaultImages => defaultImages.Images[0].Id),
InstanceType = "ecs.n1.tiny",
SecurityGroupId = defaultSecurityGroup.Id,
});
var defaultAutoProvisioningGroup = new AliCloud.Ecs.AutoProvisioningGroup("defaultAutoProvisioningGroup", new AliCloud.Ecs.AutoProvisioningGroupArgs
{
LaunchTemplateConfigs =
{
new AliCloud.Ecs.Inputs.AutoProvisioningGroupLaunchTemplateConfigArgs
{
InstanceType = "ecs.n1.small",
VswitchId = defaultSwitch.Id,
},
},
LaunchTemplateId = template.Id,
PayAsYouGoTargetCapacity = "1",
SpotTargetCapacity = "2",
TotalTargetCapacity = "4",
});
}
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "auto_provisioning_group"
default_zones = alicloud.get_zones(available_disk_category="cloud_efficiency",
available_resource_creation="VSwitch")
default_network = alicloud.vpc.Network("defaultNetwork", cidr_block="172.16.0.0/16")
default_switch = alicloud.vpc.Switch("defaultSwitch",
availability_zone=default_zones.zones[0]["id"],
cidr_block="172.16.0.0/24",
vpc_id=default_network.id)
default_security_group = alicloud.ecs.SecurityGroup("defaultSecurityGroup", vpc_id=default_network.id)
default_images = alicloud.ecs.get_images(most_recent=True,
name_regex="^ubuntu_18.*64",
owners="system")
template = alicloud.ecs.LaunchTemplate("template",
image_id=default_images.images[0]["id"],
instance_type="ecs.n1.tiny",
security_group_id=default_security_group.id)
default_auto_provisioning_group = alicloud.ecs.AutoProvisioningGroup("defaultAutoProvisioningGroup",
launch_template_configs=[{
"instance_type": "ecs.n1.small",
"vswitch_id": default_switch.id,
}],
launch_template_id=template.id,
pay_as_you_go_target_capacity="1",
spot_target_capacity="2",
total_target_capacity="4")import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "auto_provisioning_group";
const defaultZones = pulumi.output(alicloud.getZones({
availableDiskCategory: "cloud_efficiency",
availableResourceCreation: "VSwitch",
}, { async: true }));
const defaultNetwork = new alicloud.vpc.Network("default", {
cidrBlock: "172.16.0.0/16",
});
const defaultSwitch = new alicloud.vpc.Switch("default", {
availabilityZone: defaultZones.zones[0].id,
cidrBlock: "172.16.0.0/24",
vpcId: defaultNetwork.id,
});
const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("default", {
vpcId: defaultNetwork.id,
});
const defaultImages = pulumi.output(alicloud.ecs.getImages({
mostRecent: true,
nameRegex: "^ubuntu_18.*64",
owners: "system",
}, { async: true }));
const template = new alicloud.ecs.LaunchTemplate("template", {
imageId: defaultImages.images[0].id,
instanceType: "ecs.n1.tiny",
securityGroupId: defaultSecurityGroup.id,
});
const defaultAutoProvisioningGroup = new alicloud.ecs.AutoProvisioningGroup("default", {
launchTemplateConfigs: [{
instanceType: "ecs.n1.small",
vswitchId: defaultSwitch.id,
}],
launchTemplateId: template.id,
payAsYouGoTargetCapacity: "1",
spotTargetCapacity: "2",
totalTargetCapacity: "4",
});Create a AutoProvisioningGroup Resource
new AutoProvisioningGroup(name: string, args: AutoProvisioningGroupArgs, opts?: CustomResourceOptions);def AutoProvisioningGroup(resource_name, opts=None, auto_provisioning_group_name=None, auto_provisioning_group_type=None, default_target_capacity_type=None, description=None, excess_capacity_termination_policy=None, launch_template_configs=None, launch_template_id=None, launch_template_version=None, max_spot_price=None, pay_as_you_go_allocation_strategy=None, pay_as_you_go_target_capacity=None, spot_allocation_strategy=None, spot_instance_interruption_behavior=None, spot_instance_pools_to_use_count=None, spot_target_capacity=None, terminate_instances=None, terminate_instances_with_expiration=None, total_target_capacity=None, valid_from=None, valid_until=None, __props__=None);func NewAutoProvisioningGroup(ctx *Context, name string, args AutoProvisioningGroupArgs, opts ...ResourceOption) (*AutoProvisioningGroup, error)public AutoProvisioningGroup(string name, AutoProvisioningGroupArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args AutoProvisioningGroupArgs
- 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 AutoProvisioningGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AutoProvisioningGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
AutoProvisioningGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The AutoProvisioningGroup resource accepts the following input properties:
- Launch
Template List<Pulumi.Configs Ali Cloud. Ecs. Inputs. Auto Provisioning Group Launch Template Config Args> DataDisk mappings to attach to ecs instance. See Block config below for details.
- Launch
Template stringId The ID of the instance launch template associated with the auto provisioning group.
- Total
Target stringCapacity The total target capacity of the auto provisioning group. The target capacity consists of the following three parts:PayAsYouGoTargetCapacity,SpotTargetCapacity and the supplemental capacity besides PayAsYouGoTargetCapacity and SpotTargetCapacity.
- Auto
Provisioning stringGroup Name - Auto
Provisioning stringGroup Type - Default
Target stringCapacity Type The type of supplemental instances. When the total value of
PayAsYouGoTargetCapacityandSpotTargetCapacityis smaller than the value of TotalTargetCapacity, the auto provisioning group will create instances of the specified type to meet the capacity requirements. Valid values:PayAsYouGo: Pay-as-you-go instances;Spot: Preemptible instances, Default value:Spot.- Description string
The description of the auto provisioning group.
- Excess
Capacity stringTermination Policy The shutdown policy for excess preemptible instances followed when the capacity of the auto provisioning group exceeds the target capacity. Valid values:
no-terminationandtermination,Default value:no-termination.- Launch
Template stringVersion The version of the instance launch template associated with the auto provisioning group.
- Max
Spot doublePrice The global maximum price for preemptible instances in the auto provisioning group. If both the
MaxSpotPriceandLaunchTemplateConfig.N.MaxPriceparameters are specified, the maximum price is the lower value of the two.- Pay
As stringYou Go Allocation Strategy The scale-out policy for pay-as-you-go instances. Valid values:
lowest-priceandprioritized,Default value:lowest-price.- Pay
As stringYou Go Target Capacity The target capacity of pay-as-you-go instances in the auto provisioning group.
- Spot
Allocation stringStrategy The scale-out policy for preemptible instances. Valid values:
lowest-priceanddiversified,Default value:lowest-price.- Spot
Instance stringInterruption Behavior The default behavior after preemptible instances are shut down. Value values:
stopandterminate,Default value:stop.- Spot
Instance intPools To Use Count This parameter takes effect when the
SpotAllocationStrategyparameter is set tolowest-price. The auto provisioning group selects instance types of the lowest cost to create instances.- Spot
Target stringCapacity The target capacity of preemptible instances in the auto provisioning group.
- Terminate
Instances bool Specifies whether to release instances of the auto provisioning group. Valid values:
falseandtrue, default value:false.- Terminate
Instances boolWith Expiration The shutdown policy for preemptible instances when the auto provisioning group expires. Valid values:
falseandtrue, default value:false.- Valid
From string The time when the auto provisioning group is started. The period of time between this point in time and the point in time specified by the
valid_untilparameter is the effective time period of the auto provisioning group.By default, an auto provisioning group is immediately started after creation.- Valid
Until string The time when the auto provisioning group expires. The period of time between this point in time and the point in time specified by the
valid_fromparameter is the effective time period of the auto provisioning group.By default, an auto provisioning group never expires.
- Launch
Template []AutoConfigs Provisioning Group Launch Template Config DataDisk mappings to attach to ecs instance. See Block config below for details.
- Launch
Template stringId The ID of the instance launch template associated with the auto provisioning group.
- Total
Target stringCapacity The total target capacity of the auto provisioning group. The target capacity consists of the following three parts:PayAsYouGoTargetCapacity,SpotTargetCapacity and the supplemental capacity besides PayAsYouGoTargetCapacity and SpotTargetCapacity.
- Auto
Provisioning stringGroup Name - Auto
Provisioning stringGroup Type - Default
Target stringCapacity Type The type of supplemental instances. When the total value of
PayAsYouGoTargetCapacityandSpotTargetCapacityis smaller than the value of TotalTargetCapacity, the auto provisioning group will create instances of the specified type to meet the capacity requirements. Valid values:PayAsYouGo: Pay-as-you-go instances;Spot: Preemptible instances, Default value:Spot.- Description string
The description of the auto provisioning group.
- Excess
Capacity stringTermination Policy The shutdown policy for excess preemptible instances followed when the capacity of the auto provisioning group exceeds the target capacity. Valid values:
no-terminationandtermination,Default value:no-termination.- Launch
Template stringVersion The version of the instance launch template associated with the auto provisioning group.
- Max
Spot float64Price The global maximum price for preemptible instances in the auto provisioning group. If both the
MaxSpotPriceandLaunchTemplateConfig.N.MaxPriceparameters are specified, the maximum price is the lower value of the two.- Pay
As stringYou Go Allocation Strategy The scale-out policy for pay-as-you-go instances. Valid values:
lowest-priceandprioritized,Default value:lowest-price.- Pay
As stringYou Go Target Capacity The target capacity of pay-as-you-go instances in the auto provisioning group.
- Spot
Allocation stringStrategy The scale-out policy for preemptible instances. Valid values:
lowest-priceanddiversified,Default value:lowest-price.- Spot
Instance stringInterruption Behavior The default behavior after preemptible instances are shut down. Value values:
stopandterminate,Default value:stop.- Spot
Instance intPools To Use Count This parameter takes effect when the
SpotAllocationStrategyparameter is set tolowest-price. The auto provisioning group selects instance types of the lowest cost to create instances.- Spot
Target stringCapacity The target capacity of preemptible instances in the auto provisioning group.
- Terminate
Instances bool Specifies whether to release instances of the auto provisioning group. Valid values:
falseandtrue, default value:false.- Terminate
Instances boolWith Expiration The shutdown policy for preemptible instances when the auto provisioning group expires. Valid values:
falseandtrue, default value:false.- Valid
From string The time when the auto provisioning group is started. The period of time between this point in time and the point in time specified by the
valid_untilparameter is the effective time period of the auto provisioning group.By default, an auto provisioning group is immediately started after creation.- Valid
Until string The time when the auto provisioning group expires. The period of time between this point in time and the point in time specified by the
valid_fromparameter is the effective time period of the auto provisioning group.By default, an auto provisioning group never expires.
- launch
Template AutoConfigs Provisioning Group Launch Template Config[] DataDisk mappings to attach to ecs instance. See Block config below for details.
- launch
Template stringId The ID of the instance launch template associated with the auto provisioning group.
- total
Target stringCapacity The total target capacity of the auto provisioning group. The target capacity consists of the following three parts:PayAsYouGoTargetCapacity,SpotTargetCapacity and the supplemental capacity besides PayAsYouGoTargetCapacity and SpotTargetCapacity.
- auto
Provisioning stringGroup Name - auto
Provisioning stringGroup Type - default
Target stringCapacity Type The type of supplemental instances. When the total value of
PayAsYouGoTargetCapacityandSpotTargetCapacityis smaller than the value of TotalTargetCapacity, the auto provisioning group will create instances of the specified type to meet the capacity requirements. Valid values:PayAsYouGo: Pay-as-you-go instances;Spot: Preemptible instances, Default value:Spot.- description string
The description of the auto provisioning group.
- excess
Capacity stringTermination Policy The shutdown policy for excess preemptible instances followed when the capacity of the auto provisioning group exceeds the target capacity. Valid values:
no-terminationandtermination,Default value:no-termination.- launch
Template stringVersion The version of the instance launch template associated with the auto provisioning group.
- max
Spot numberPrice The global maximum price for preemptible instances in the auto provisioning group. If both the
MaxSpotPriceandLaunchTemplateConfig.N.MaxPriceparameters are specified, the maximum price is the lower value of the two.- pay
As stringYou Go Allocation Strategy The scale-out policy for pay-as-you-go instances. Valid values:
lowest-priceandprioritized,Default value:lowest-price.- pay
As stringYou Go Target Capacity The target capacity of pay-as-you-go instances in the auto provisioning group.
- spot
Allocation stringStrategy The scale-out policy for preemptible instances. Valid values:
lowest-priceanddiversified,Default value:lowest-price.- spot
Instance stringInterruption Behavior The default behavior after preemptible instances are shut down. Value values:
stopandterminate,Default value:stop.- spot
Instance numberPools To Use Count This parameter takes effect when the
SpotAllocationStrategyparameter is set tolowest-price. The auto provisioning group selects instance types of the lowest cost to create instances.- spot
Target stringCapacity The target capacity of preemptible instances in the auto provisioning group.
- terminate
Instances boolean Specifies whether to release instances of the auto provisioning group. Valid values:
falseandtrue, default value:false.- terminate
Instances booleanWith Expiration The shutdown policy for preemptible instances when the auto provisioning group expires. Valid values:
falseandtrue, default value:false.- valid
From string The time when the auto provisioning group is started. The period of time between this point in time and the point in time specified by the
valid_untilparameter is the effective time period of the auto provisioning group.By default, an auto provisioning group is immediately started after creation.- valid
Until string The time when the auto provisioning group expires. The period of time between this point in time and the point in time specified by the
valid_fromparameter is the effective time period of the auto provisioning group.By default, an auto provisioning group never expires.
- launch_
template_ List[Autoconfigs Provisioning Group Launch Template Config] DataDisk mappings to attach to ecs instance. See Block config below for details.
- launch_
template_ strid The ID of the instance launch template associated with the auto provisioning group.
- total_
target_ strcapacity The total target capacity of the auto provisioning group. The target capacity consists of the following three parts:PayAsYouGoTargetCapacity,SpotTargetCapacity and the supplemental capacity besides PayAsYouGoTargetCapacity and SpotTargetCapacity.
- auto_
provisioning_ strgroup_ name - auto_
provisioning_ strgroup_ type - default_
target_ strcapacity_ type The type of supplemental instances. When the total value of
PayAsYouGoTargetCapacityandSpotTargetCapacityis smaller than the value of TotalTargetCapacity, the auto provisioning group will create instances of the specified type to meet the capacity requirements. Valid values:PayAsYouGo: Pay-as-you-go instances;Spot: Preemptible instances, Default value:Spot.- description str
The description of the auto provisioning group.
- excess_
capacity_ strtermination_ policy The shutdown policy for excess preemptible instances followed when the capacity of the auto provisioning group exceeds the target capacity. Valid values:
no-terminationandtermination,Default value:no-termination.- launch_
template_ strversion The version of the instance launch template associated with the auto provisioning group.
- max_
spot_ floatprice The global maximum price for preemptible instances in the auto provisioning group. If both the
MaxSpotPriceandLaunchTemplateConfig.N.MaxPriceparameters are specified, the maximum price is the lower value of the two.- pay_
as_ stryou_ go_ allocation_ strategy The scale-out policy for pay-as-you-go instances. Valid values:
lowest-priceandprioritized,Default value:lowest-price.- pay_
as_ stryou_ go_ target_ capacity The target capacity of pay-as-you-go instances in the auto provisioning group.
- spot_
allocation_ strstrategy The scale-out policy for preemptible instances. Valid values:
lowest-priceanddiversified,Default value:lowest-price.- spot_
instance_ strinterruption_ behavior The default behavior after preemptible instances are shut down. Value values:
stopandterminate,Default value:stop.- spot_
instance_ floatpools_ to_ use_ count This parameter takes effect when the
SpotAllocationStrategyparameter is set tolowest-price. The auto provisioning group selects instance types of the lowest cost to create instances.- spot_
target_ strcapacity The target capacity of preemptible instances in the auto provisioning group.
- terminate_
instances bool Specifies whether to release instances of the auto provisioning group. Valid values:
falseandtrue, default value:false.- terminate_
instances_ boolwith_ expiration The shutdown policy for preemptible instances when the auto provisioning group expires. Valid values:
falseandtrue, default value:false.- valid_
from str The time when the auto provisioning group is started. The period of time between this point in time and the point in time specified by the
valid_untilparameter is the effective time period of the auto provisioning group.By default, an auto provisioning group is immediately started after creation.- valid_
until str The time when the auto provisioning group expires. The period of time between this point in time and the point in time specified by the
valid_fromparameter is the effective time period of the auto provisioning group.By default, an auto provisioning group never expires.
Outputs
All input properties are implicitly available as output properties. Additionally, the AutoProvisioningGroup resource produces the following output properties:
Look up an Existing AutoProvisioningGroup Resource
Get an existing AutoProvisioningGroup 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?: AutoProvisioningGroupState, opts?: CustomResourceOptions): AutoProvisioningGroupstatic get(resource_name, id, opts=None, auto_provisioning_group_name=None, auto_provisioning_group_type=None, default_target_capacity_type=None, description=None, excess_capacity_termination_policy=None, launch_template_configs=None, launch_template_id=None, launch_template_version=None, max_spot_price=None, pay_as_you_go_allocation_strategy=None, pay_as_you_go_target_capacity=None, spot_allocation_strategy=None, spot_instance_interruption_behavior=None, spot_instance_pools_to_use_count=None, spot_target_capacity=None, terminate_instances=None, terminate_instances_with_expiration=None, total_target_capacity=None, valid_from=None, valid_until=None, __props__=None);func GetAutoProvisioningGroup(ctx *Context, name string, id IDInput, state *AutoProvisioningGroupState, opts ...ResourceOption) (*AutoProvisioningGroup, error)public static AutoProvisioningGroup Get(string name, Input<string> id, AutoProvisioningGroupState? 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
Provisioning stringGroup Name - Auto
Provisioning stringGroup Type - Default
Target stringCapacity Type The type of supplemental instances. When the total value of
PayAsYouGoTargetCapacityandSpotTargetCapacityis smaller than the value of TotalTargetCapacity, the auto provisioning group will create instances of the specified type to meet the capacity requirements. Valid values:PayAsYouGo: Pay-as-you-go instances;Spot: Preemptible instances, Default value:Spot.- Description string
The description of the auto provisioning group.
- Excess
Capacity stringTermination Policy The shutdown policy for excess preemptible instances followed when the capacity of the auto provisioning group exceeds the target capacity. Valid values:
no-terminationandtermination,Default value:no-termination.- Launch
Template List<Pulumi.Configs Ali Cloud. Ecs. Inputs. Auto Provisioning Group Launch Template Config Args> DataDisk mappings to attach to ecs instance. See Block config below for details.
- Launch
Template stringId The ID of the instance launch template associated with the auto provisioning group.
- Launch
Template stringVersion The version of the instance launch template associated with the auto provisioning group.
- Max
Spot doublePrice The global maximum price for preemptible instances in the auto provisioning group. If both the
MaxSpotPriceandLaunchTemplateConfig.N.MaxPriceparameters are specified, the maximum price is the lower value of the two.- Pay
As stringYou Go Allocation Strategy The scale-out policy for pay-as-you-go instances. Valid values:
lowest-priceandprioritized,Default value:lowest-price.- Pay
As stringYou Go Target Capacity The target capacity of pay-as-you-go instances in the auto provisioning group.
- Spot
Allocation stringStrategy The scale-out policy for preemptible instances. Valid values:
lowest-priceanddiversified,Default value:lowest-price.- Spot
Instance stringInterruption Behavior The default behavior after preemptible instances are shut down. Value values:
stopandterminate,Default value:stop.- Spot
Instance intPools To Use Count This parameter takes effect when the
SpotAllocationStrategyparameter is set tolowest-price. The auto provisioning group selects instance types of the lowest cost to create instances.- Spot
Target stringCapacity The target capacity of preemptible instances in the auto provisioning group.
- Terminate
Instances bool Specifies whether to release instances of the auto provisioning group. Valid values:
falseandtrue, default value:false.- Terminate
Instances boolWith Expiration The shutdown policy for preemptible instances when the auto provisioning group expires. Valid values:
falseandtrue, default value:false.- Total
Target stringCapacity The total target capacity of the auto provisioning group. The target capacity consists of the following three parts:PayAsYouGoTargetCapacity,SpotTargetCapacity and the supplemental capacity besides PayAsYouGoTargetCapacity and SpotTargetCapacity.
- Valid
From string The time when the auto provisioning group is started. The period of time between this point in time and the point in time specified by the
valid_untilparameter is the effective time period of the auto provisioning group.By default, an auto provisioning group is immediately started after creation.- Valid
Until string The time when the auto provisioning group expires. The period of time between this point in time and the point in time specified by the
valid_fromparameter is the effective time period of the auto provisioning group.By default, an auto provisioning group never expires.
- Auto
Provisioning stringGroup Name - Auto
Provisioning stringGroup Type - Default
Target stringCapacity Type The type of supplemental instances. When the total value of
PayAsYouGoTargetCapacityandSpotTargetCapacityis smaller than the value of TotalTargetCapacity, the auto provisioning group will create instances of the specified type to meet the capacity requirements. Valid values:PayAsYouGo: Pay-as-you-go instances;Spot: Preemptible instances, Default value:Spot.- Description string
The description of the auto provisioning group.
- Excess
Capacity stringTermination Policy The shutdown policy for excess preemptible instances followed when the capacity of the auto provisioning group exceeds the target capacity. Valid values:
no-terminationandtermination,Default value:no-termination.- Launch
Template []AutoConfigs Provisioning Group Launch Template Config DataDisk mappings to attach to ecs instance. See Block config below for details.
- Launch
Template stringId The ID of the instance launch template associated with the auto provisioning group.
- Launch
Template stringVersion The version of the instance launch template associated with the auto provisioning group.
- Max
Spot float64Price The global maximum price for preemptible instances in the auto provisioning group. If both the
MaxSpotPriceandLaunchTemplateConfig.N.MaxPriceparameters are specified, the maximum price is the lower value of the two.- Pay
As stringYou Go Allocation Strategy The scale-out policy for pay-as-you-go instances. Valid values:
lowest-priceandprioritized,Default value:lowest-price.- Pay
As stringYou Go Target Capacity The target capacity of pay-as-you-go instances in the auto provisioning group.
- Spot
Allocation stringStrategy The scale-out policy for preemptible instances. Valid values:
lowest-priceanddiversified,Default value:lowest-price.- Spot
Instance stringInterruption Behavior The default behavior after preemptible instances are shut down. Value values:
stopandterminate,Default value:stop.- Spot
Instance intPools To Use Count This parameter takes effect when the
SpotAllocationStrategyparameter is set tolowest-price. The auto provisioning group selects instance types of the lowest cost to create instances.- Spot
Target stringCapacity The target capacity of preemptible instances in the auto provisioning group.
- Terminate
Instances bool Specifies whether to release instances of the auto provisioning group. Valid values:
falseandtrue, default value:false.- Terminate
Instances boolWith Expiration The shutdown policy for preemptible instances when the auto provisioning group expires. Valid values:
falseandtrue, default value:false.- Total
Target stringCapacity The total target capacity of the auto provisioning group. The target capacity consists of the following three parts:PayAsYouGoTargetCapacity,SpotTargetCapacity and the supplemental capacity besides PayAsYouGoTargetCapacity and SpotTargetCapacity.
- Valid
From string The time when the auto provisioning group is started. The period of time between this point in time and the point in time specified by the
valid_untilparameter is the effective time period of the auto provisioning group.By default, an auto provisioning group is immediately started after creation.- Valid
Until string The time when the auto provisioning group expires. The period of time between this point in time and the point in time specified by the
valid_fromparameter is the effective time period of the auto provisioning group.By default, an auto provisioning group never expires.
- auto
Provisioning stringGroup Name - auto
Provisioning stringGroup Type - default
Target stringCapacity Type The type of supplemental instances. When the total value of
PayAsYouGoTargetCapacityandSpotTargetCapacityis smaller than the value of TotalTargetCapacity, the auto provisioning group will create instances of the specified type to meet the capacity requirements. Valid values:PayAsYouGo: Pay-as-you-go instances;Spot: Preemptible instances, Default value:Spot.- description string
The description of the auto provisioning group.
- excess
Capacity stringTermination Policy The shutdown policy for excess preemptible instances followed when the capacity of the auto provisioning group exceeds the target capacity. Valid values:
no-terminationandtermination,Default value:no-termination.- launch
Template AutoConfigs Provisioning Group Launch Template Config[] DataDisk mappings to attach to ecs instance. See Block config below for details.
- launch
Template stringId The ID of the instance launch template associated with the auto provisioning group.
- launch
Template stringVersion The version of the instance launch template associated with the auto provisioning group.
- max
Spot numberPrice The global maximum price for preemptible instances in the auto provisioning group. If both the
MaxSpotPriceandLaunchTemplateConfig.N.MaxPriceparameters are specified, the maximum price is the lower value of the two.- pay
As stringYou Go Allocation Strategy The scale-out policy for pay-as-you-go instances. Valid values:
lowest-priceandprioritized,Default value:lowest-price.- pay
As stringYou Go Target Capacity The target capacity of pay-as-you-go instances in the auto provisioning group.
- spot
Allocation stringStrategy The scale-out policy for preemptible instances. Valid values:
lowest-priceanddiversified,Default value:lowest-price.- spot
Instance stringInterruption Behavior The default behavior after preemptible instances are shut down. Value values:
stopandterminate,Default value:stop.- spot
Instance numberPools To Use Count This parameter takes effect when the
SpotAllocationStrategyparameter is set tolowest-price. The auto provisioning group selects instance types of the lowest cost to create instances.- spot
Target stringCapacity The target capacity of preemptible instances in the auto provisioning group.
- terminate
Instances boolean Specifies whether to release instances of the auto provisioning group. Valid values:
falseandtrue, default value:false.- terminate
Instances booleanWith Expiration The shutdown policy for preemptible instances when the auto provisioning group expires. Valid values:
falseandtrue, default value:false.- total
Target stringCapacity The total target capacity of the auto provisioning group. The target capacity consists of the following three parts:PayAsYouGoTargetCapacity,SpotTargetCapacity and the supplemental capacity besides PayAsYouGoTargetCapacity and SpotTargetCapacity.
- valid
From string The time when the auto provisioning group is started. The period of time between this point in time and the point in time specified by the
valid_untilparameter is the effective time period of the auto provisioning group.By default, an auto provisioning group is immediately started after creation.- valid
Until string The time when the auto provisioning group expires. The period of time between this point in time and the point in time specified by the
valid_fromparameter is the effective time period of the auto provisioning group.By default, an auto provisioning group never expires.
- auto_
provisioning_ strgroup_ name - auto_
provisioning_ strgroup_ type - default_
target_ strcapacity_ type The type of supplemental instances. When the total value of
PayAsYouGoTargetCapacityandSpotTargetCapacityis smaller than the value of TotalTargetCapacity, the auto provisioning group will create instances of the specified type to meet the capacity requirements. Valid values:PayAsYouGo: Pay-as-you-go instances;Spot: Preemptible instances, Default value:Spot.- description str
The description of the auto provisioning group.
- excess_
capacity_ strtermination_ policy The shutdown policy for excess preemptible instances followed when the capacity of the auto provisioning group exceeds the target capacity. Valid values:
no-terminationandtermination,Default value:no-termination.- launch_
template_ List[Autoconfigs Provisioning Group Launch Template Config] DataDisk mappings to attach to ecs instance. See Block config below for details.
- launch_
template_ strid The ID of the instance launch template associated with the auto provisioning group.
- launch_
template_ strversion The version of the instance launch template associated with the auto provisioning group.
- max_
spot_ floatprice The global maximum price for preemptible instances in the auto provisioning group. If both the
MaxSpotPriceandLaunchTemplateConfig.N.MaxPriceparameters are specified, the maximum price is the lower value of the two.- pay_
as_ stryou_ go_ allocation_ strategy The scale-out policy for pay-as-you-go instances. Valid values:
lowest-priceandprioritized,Default value:lowest-price.- pay_
as_ stryou_ go_ target_ capacity The target capacity of pay-as-you-go instances in the auto provisioning group.
- spot_
allocation_ strstrategy The scale-out policy for preemptible instances. Valid values:
lowest-priceanddiversified,Default value:lowest-price.- spot_
instance_ strinterruption_ behavior The default behavior after preemptible instances are shut down. Value values:
stopandterminate,Default value:stop.- spot_
instance_ floatpools_ to_ use_ count This parameter takes effect when the
SpotAllocationStrategyparameter is set tolowest-price. The auto provisioning group selects instance types of the lowest cost to create instances.- spot_
target_ strcapacity The target capacity of preemptible instances in the auto provisioning group.
- terminate_
instances bool Specifies whether to release instances of the auto provisioning group. Valid values:
falseandtrue, default value:false.- terminate_
instances_ boolwith_ expiration The shutdown policy for preemptible instances when the auto provisioning group expires. Valid values:
falseandtrue, default value:false.- total_
target_ strcapacity The total target capacity of the auto provisioning group. The target capacity consists of the following three parts:PayAsYouGoTargetCapacity,SpotTargetCapacity and the supplemental capacity besides PayAsYouGoTargetCapacity and SpotTargetCapacity.
- valid_
from str The time when the auto provisioning group is started. The period of time between this point in time and the point in time specified by the
valid_untilparameter is the effective time period of the auto provisioning group.By default, an auto provisioning group is immediately started after creation.- valid_
until str The time when the auto provisioning group expires. The period of time between this point in time and the point in time specified by the
valid_fromparameter is the effective time period of the auto provisioning group.By default, an auto provisioning group never expires.
Supporting Types
AutoProvisioningGroupLaunchTemplateConfig
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.