aws.emr.InstanceFleet
Explore with Pulumi AI
Provides an Elastic MapReduce Cluster Instance Fleet configuration. See Amazon Elastic MapReduce Documentation for more information.
NOTE: At this time, Instance Fleets cannot be destroyed through the API nor web interface. Instance Fleets are destroyed when the EMR Cluster is destroyed. the provider will resize any Instance Fleet to zero when destroying the resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const task = new aws.emr.InstanceFleet("task", {
clusterId: cluster.id,
instanceTypeConfigs: [
{
bidPriceAsPercentageOfOnDemandPrice: 100,
ebsConfigs: [{
size: 100,
type: "gp2",
volumesPerInstance: 1,
}],
instanceType: "m4.xlarge",
weightedCapacity: 1,
},
{
bidPriceAsPercentageOfOnDemandPrice: 100,
ebsConfigs: [{
size: 100,
type: "gp2",
volumesPerInstance: 1,
}],
instanceType: "m4.2xlarge",
weightedCapacity: 2,
},
],
launchSpecifications: {
spotSpecifications: [{
allocationStrategy: "capacity-optimized",
blockDurationMinutes: 0,
timeoutAction: "TERMINATE_CLUSTER",
timeoutDurationMinutes: 10,
}],
},
name: "task fleet",
targetOnDemandCapacity: 1,
targetSpotCapacity: 1,
});
import pulumi
import pulumi_aws as aws
task = aws.emr.InstanceFleet("task",
cluster_id=cluster["id"],
instance_type_configs=[
{
"bid_price_as_percentage_of_on_demand_price": 100,
"ebs_configs": [{
"size": 100,
"type": "gp2",
"volumes_per_instance": 1,
}],
"instance_type": "m4.xlarge",
"weighted_capacity": 1,
},
{
"bid_price_as_percentage_of_on_demand_price": 100,
"ebs_configs": [{
"size": 100,
"type": "gp2",
"volumes_per_instance": 1,
}],
"instance_type": "m4.2xlarge",
"weighted_capacity": 2,
},
],
launch_specifications={
"spot_specifications": [{
"allocation_strategy": "capacity-optimized",
"block_duration_minutes": 0,
"timeout_action": "TERMINATE_CLUSTER",
"timeout_duration_minutes": 10,
}],
},
name="task fleet",
target_on_demand_capacity=1,
target_spot_capacity=1)
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/emr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := emr.NewInstanceFleet(ctx, "task", &emr.InstanceFleetArgs{
ClusterId: pulumi.Any(cluster.Id),
InstanceTypeConfigs: emr.InstanceFleetInstanceTypeConfigArray{
&emr.InstanceFleetInstanceTypeConfigArgs{
BidPriceAsPercentageOfOnDemandPrice: pulumi.Float64(100),
EbsConfigs: emr.InstanceFleetInstanceTypeConfigEbsConfigArray{
&emr.InstanceFleetInstanceTypeConfigEbsConfigArgs{
Size: pulumi.Int(100),
Type: pulumi.String("gp2"),
VolumesPerInstance: pulumi.Int(1),
},
},
InstanceType: pulumi.String("m4.xlarge"),
WeightedCapacity: pulumi.Int(1),
},
&emr.InstanceFleetInstanceTypeConfigArgs{
BidPriceAsPercentageOfOnDemandPrice: pulumi.Float64(100),
EbsConfigs: emr.InstanceFleetInstanceTypeConfigEbsConfigArray{
&emr.InstanceFleetInstanceTypeConfigEbsConfigArgs{
Size: pulumi.Int(100),
Type: pulumi.String("gp2"),
VolumesPerInstance: pulumi.Int(1),
},
},
InstanceType: pulumi.String("m4.2xlarge"),
WeightedCapacity: pulumi.Int(2),
},
},
LaunchSpecifications: &emr.InstanceFleetLaunchSpecificationsArgs{
SpotSpecifications: emr.InstanceFleetLaunchSpecificationsSpotSpecificationArray{
&emr.InstanceFleetLaunchSpecificationsSpotSpecificationArgs{
AllocationStrategy: pulumi.String("capacity-optimized"),
BlockDurationMinutes: pulumi.Int(0),
TimeoutAction: pulumi.String("TERMINATE_CLUSTER"),
TimeoutDurationMinutes: pulumi.Int(10),
},
},
},
Name: pulumi.String("task fleet"),
TargetOnDemandCapacity: pulumi.Int(1),
TargetSpotCapacity: pulumi.Int(1),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var task = new Aws.Emr.InstanceFleet("task", new()
{
ClusterId = cluster.Id,
InstanceTypeConfigs = new[]
{
new Aws.Emr.Inputs.InstanceFleetInstanceTypeConfigArgs
{
BidPriceAsPercentageOfOnDemandPrice = 100,
EbsConfigs = new[]
{
new Aws.Emr.Inputs.InstanceFleetInstanceTypeConfigEbsConfigArgs
{
Size = 100,
Type = "gp2",
VolumesPerInstance = 1,
},
},
InstanceType = "m4.xlarge",
WeightedCapacity = 1,
},
new Aws.Emr.Inputs.InstanceFleetInstanceTypeConfigArgs
{
BidPriceAsPercentageOfOnDemandPrice = 100,
EbsConfigs = new[]
{
new Aws.Emr.Inputs.InstanceFleetInstanceTypeConfigEbsConfigArgs
{
Size = 100,
Type = "gp2",
VolumesPerInstance = 1,
},
},
InstanceType = "m4.2xlarge",
WeightedCapacity = 2,
},
},
LaunchSpecifications = new Aws.Emr.Inputs.InstanceFleetLaunchSpecificationsArgs
{
SpotSpecifications = new[]
{
new Aws.Emr.Inputs.InstanceFleetLaunchSpecificationsSpotSpecificationArgs
{
AllocationStrategy = "capacity-optimized",
BlockDurationMinutes = 0,
TimeoutAction = "TERMINATE_CLUSTER",
TimeoutDurationMinutes = 10,
},
},
},
Name = "task fleet",
TargetOnDemandCapacity = 1,
TargetSpotCapacity = 1,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.emr.InstanceFleet;
import com.pulumi.aws.emr.InstanceFleetArgs;
import com.pulumi.aws.emr.inputs.InstanceFleetInstanceTypeConfigArgs;
import com.pulumi.aws.emr.inputs.InstanceFleetLaunchSpecificationsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var task = new InstanceFleet("task", InstanceFleetArgs.builder()
.clusterId(cluster.id())
.instanceTypeConfigs(
InstanceFleetInstanceTypeConfigArgs.builder()
.bidPriceAsPercentageOfOnDemandPrice(100)
.ebsConfigs(InstanceFleetInstanceTypeConfigEbsConfigArgs.builder()
.size(100)
.type("gp2")
.volumesPerInstance(1)
.build())
.instanceType("m4.xlarge")
.weightedCapacity(1)
.build(),
InstanceFleetInstanceTypeConfigArgs.builder()
.bidPriceAsPercentageOfOnDemandPrice(100)
.ebsConfigs(InstanceFleetInstanceTypeConfigEbsConfigArgs.builder()
.size(100)
.type("gp2")
.volumesPerInstance(1)
.build())
.instanceType("m4.2xlarge")
.weightedCapacity(2)
.build())
.launchSpecifications(InstanceFleetLaunchSpecificationsArgs.builder()
.spotSpecifications(InstanceFleetLaunchSpecificationsSpotSpecificationArgs.builder()
.allocationStrategy("capacity-optimized")
.blockDurationMinutes(0)
.timeoutAction("TERMINATE_CLUSTER")
.timeoutDurationMinutes(10)
.build())
.build())
.name("task fleet")
.targetOnDemandCapacity(1)
.targetSpotCapacity(1)
.build());
}
}
resources:
task:
type: aws:emr:InstanceFleet
properties:
clusterId: ${cluster.id}
instanceTypeConfigs:
- bidPriceAsPercentageOfOnDemandPrice: 100
ebsConfigs:
- size: 100
type: gp2
volumesPerInstance: 1
instanceType: m4.xlarge
weightedCapacity: 1
- bidPriceAsPercentageOfOnDemandPrice: 100
ebsConfigs:
- size: 100
type: gp2
volumesPerInstance: 1
instanceType: m4.2xlarge
weightedCapacity: 2
launchSpecifications:
spotSpecifications:
- allocationStrategy: capacity-optimized
blockDurationMinutes: 0
timeoutAction: TERMINATE_CLUSTER
timeoutDurationMinutes: 10
name: task fleet
targetOnDemandCapacity: 1
targetSpotCapacity: 1
Create InstanceFleet Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InstanceFleet(name: string, args: InstanceFleetArgs, opts?: CustomResourceOptions);
@overload
def InstanceFleet(resource_name: str,
args: InstanceFleetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def InstanceFleet(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
instance_type_configs: Optional[Sequence[InstanceFleetInstanceTypeConfigArgs]] = None,
launch_specifications: Optional[InstanceFleetLaunchSpecificationsArgs] = None,
name: Optional[str] = None,
target_on_demand_capacity: Optional[int] = None,
target_spot_capacity: Optional[int] = None)
func NewInstanceFleet(ctx *Context, name string, args InstanceFleetArgs, opts ...ResourceOption) (*InstanceFleet, error)
public InstanceFleet(string name, InstanceFleetArgs args, CustomResourceOptions? opts = null)
public InstanceFleet(String name, InstanceFleetArgs args)
public InstanceFleet(String name, InstanceFleetArgs args, CustomResourceOptions options)
type: aws:emr:InstanceFleet
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args InstanceFleetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args InstanceFleetArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args InstanceFleetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceFleetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceFleetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var instanceFleetResource = new Aws.Emr.InstanceFleet("instanceFleetResource", new()
{
ClusterId = "string",
InstanceTypeConfigs = new[]
{
new Aws.Emr.Inputs.InstanceFleetInstanceTypeConfigArgs
{
InstanceType = "string",
BidPrice = "string",
BidPriceAsPercentageOfOnDemandPrice = 0,
Configurations = new[]
{
new Aws.Emr.Inputs.InstanceFleetInstanceTypeConfigConfigurationArgs
{
Classification = "string",
Properties =
{
{ "string", "string" },
},
},
},
EbsConfigs = new[]
{
new Aws.Emr.Inputs.InstanceFleetInstanceTypeConfigEbsConfigArgs
{
Size = 0,
Type = "string",
Iops = 0,
VolumesPerInstance = 0,
},
},
WeightedCapacity = 0,
},
},
LaunchSpecifications = new Aws.Emr.Inputs.InstanceFleetLaunchSpecificationsArgs
{
OnDemandSpecifications = new[]
{
new Aws.Emr.Inputs.InstanceFleetLaunchSpecificationsOnDemandSpecificationArgs
{
AllocationStrategy = "string",
},
},
SpotSpecifications = new[]
{
new Aws.Emr.Inputs.InstanceFleetLaunchSpecificationsSpotSpecificationArgs
{
AllocationStrategy = "string",
TimeoutAction = "string",
TimeoutDurationMinutes = 0,
BlockDurationMinutes = 0,
},
},
},
Name = "string",
TargetOnDemandCapacity = 0,
TargetSpotCapacity = 0,
});
example, err := emr.NewInstanceFleet(ctx, "instanceFleetResource", &emr.InstanceFleetArgs{
ClusterId: pulumi.String("string"),
InstanceTypeConfigs: emr.InstanceFleetInstanceTypeConfigArray{
&emr.InstanceFleetInstanceTypeConfigArgs{
InstanceType: pulumi.String("string"),
BidPrice: pulumi.String("string"),
BidPriceAsPercentageOfOnDemandPrice: pulumi.Float64(0),
Configurations: emr.InstanceFleetInstanceTypeConfigConfigurationArray{
&emr.InstanceFleetInstanceTypeConfigConfigurationArgs{
Classification: pulumi.String("string"),
Properties: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
EbsConfigs: emr.InstanceFleetInstanceTypeConfigEbsConfigArray{
&emr.InstanceFleetInstanceTypeConfigEbsConfigArgs{
Size: pulumi.Int(0),
Type: pulumi.String("string"),
Iops: pulumi.Int(0),
VolumesPerInstance: pulumi.Int(0),
},
},
WeightedCapacity: pulumi.Int(0),
},
},
LaunchSpecifications: &emr.InstanceFleetLaunchSpecificationsArgs{
OnDemandSpecifications: emr.InstanceFleetLaunchSpecificationsOnDemandSpecificationArray{
&emr.InstanceFleetLaunchSpecificationsOnDemandSpecificationArgs{
AllocationStrategy: pulumi.String("string"),
},
},
SpotSpecifications: emr.InstanceFleetLaunchSpecificationsSpotSpecificationArray{
&emr.InstanceFleetLaunchSpecificationsSpotSpecificationArgs{
AllocationStrategy: pulumi.String("string"),
TimeoutAction: pulumi.String("string"),
TimeoutDurationMinutes: pulumi.Int(0),
BlockDurationMinutes: pulumi.Int(0),
},
},
},
Name: pulumi.String("string"),
TargetOnDemandCapacity: pulumi.Int(0),
TargetSpotCapacity: pulumi.Int(0),
})
var instanceFleetResource = new InstanceFleet("instanceFleetResource", InstanceFleetArgs.builder()
.clusterId("string")
.instanceTypeConfigs(InstanceFleetInstanceTypeConfigArgs.builder()
.instanceType("string")
.bidPrice("string")
.bidPriceAsPercentageOfOnDemandPrice(0)
.configurations(InstanceFleetInstanceTypeConfigConfigurationArgs.builder()
.classification("string")
.properties(Map.of("string", "string"))
.build())
.ebsConfigs(InstanceFleetInstanceTypeConfigEbsConfigArgs.builder()
.size(0)
.type("string")
.iops(0)
.volumesPerInstance(0)
.build())
.weightedCapacity(0)
.build())
.launchSpecifications(InstanceFleetLaunchSpecificationsArgs.builder()
.onDemandSpecifications(InstanceFleetLaunchSpecificationsOnDemandSpecificationArgs.builder()
.allocationStrategy("string")
.build())
.spotSpecifications(InstanceFleetLaunchSpecificationsSpotSpecificationArgs.builder()
.allocationStrategy("string")
.timeoutAction("string")
.timeoutDurationMinutes(0)
.blockDurationMinutes(0)
.build())
.build())
.name("string")
.targetOnDemandCapacity(0)
.targetSpotCapacity(0)
.build());
instance_fleet_resource = aws.emr.InstanceFleet("instanceFleetResource",
cluster_id="string",
instance_type_configs=[{
"instance_type": "string",
"bid_price": "string",
"bid_price_as_percentage_of_on_demand_price": 0,
"configurations": [{
"classification": "string",
"properties": {
"string": "string",
},
}],
"ebs_configs": [{
"size": 0,
"type": "string",
"iops": 0,
"volumes_per_instance": 0,
}],
"weighted_capacity": 0,
}],
launch_specifications={
"on_demand_specifications": [{
"allocation_strategy": "string",
}],
"spot_specifications": [{
"allocation_strategy": "string",
"timeout_action": "string",
"timeout_duration_minutes": 0,
"block_duration_minutes": 0,
}],
},
name="string",
target_on_demand_capacity=0,
target_spot_capacity=0)
const instanceFleetResource = new aws.emr.InstanceFleet("instanceFleetResource", {
clusterId: "string",
instanceTypeConfigs: [{
instanceType: "string",
bidPrice: "string",
bidPriceAsPercentageOfOnDemandPrice: 0,
configurations: [{
classification: "string",
properties: {
string: "string",
},
}],
ebsConfigs: [{
size: 0,
type: "string",
iops: 0,
volumesPerInstance: 0,
}],
weightedCapacity: 0,
}],
launchSpecifications: {
onDemandSpecifications: [{
allocationStrategy: "string",
}],
spotSpecifications: [{
allocationStrategy: "string",
timeoutAction: "string",
timeoutDurationMinutes: 0,
blockDurationMinutes: 0,
}],
},
name: "string",
targetOnDemandCapacity: 0,
targetSpotCapacity: 0,
});
type: aws:emr:InstanceFleet
properties:
clusterId: string
instanceTypeConfigs:
- bidPrice: string
bidPriceAsPercentageOfOnDemandPrice: 0
configurations:
- classification: string
properties:
string: string
ebsConfigs:
- iops: 0
size: 0
type: string
volumesPerInstance: 0
instanceType: string
weightedCapacity: 0
launchSpecifications:
onDemandSpecifications:
- allocationStrategy: string
spotSpecifications:
- allocationStrategy: string
blockDurationMinutes: 0
timeoutAction: string
timeoutDurationMinutes: 0
name: string
targetOnDemandCapacity: 0
targetSpotCapacity: 0
InstanceFleet Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The InstanceFleet resource accepts the following input properties:
- Cluster
Id string - ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
- Instance
Type List<InstanceConfigs Fleet Instance Type Config> - Configuration block for instance fleet
- Launch
Specifications InstanceFleet Launch Specifications - Configuration block for launch specification
- Name string
- Friendly name given to the instance fleet.
- Target
On intDemand Capacity - The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
- Target
Spot intCapacity - The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
- Cluster
Id string - ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
- Instance
Type []InstanceConfigs Fleet Instance Type Config Args - Configuration block for instance fleet
- Launch
Specifications InstanceFleet Launch Specifications Args - Configuration block for launch specification
- Name string
- Friendly name given to the instance fleet.
- Target
On intDemand Capacity - The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
- Target
Spot intCapacity - The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
- cluster
Id String - ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
- instance
Type List<InstanceConfigs Fleet Instance Type Config> - Configuration block for instance fleet
- launch
Specifications InstanceFleet Launch Specifications - Configuration block for launch specification
- name String
- Friendly name given to the instance fleet.
- target
On IntegerDemand Capacity - The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
- target
Spot IntegerCapacity - The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
- cluster
Id string - ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
- instance
Type InstanceConfigs Fleet Instance Type Config[] - Configuration block for instance fleet
- launch
Specifications InstanceFleet Launch Specifications - Configuration block for launch specification
- name string
- Friendly name given to the instance fleet.
- target
On numberDemand Capacity - The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
- target
Spot numberCapacity - The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
- cluster_
id str - ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
- instance_
type_ Sequence[Instanceconfigs Fleet Instance Type Config Args] - Configuration block for instance fleet
- launch_
specifications InstanceFleet Launch Specifications Args - Configuration block for launch specification
- name str
- Friendly name given to the instance fleet.
- target_
on_ intdemand_ capacity - The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
- target_
spot_ intcapacity - The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
- cluster
Id String - ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
- instance
Type List<Property Map>Configs - Configuration block for instance fleet
- launch
Specifications Property Map - Configuration block for launch specification
- name String
- Friendly name given to the instance fleet.
- target
On NumberDemand Capacity - The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
- target
Spot NumberCapacity - The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
Outputs
All input properties are implicitly available as output properties. Additionally, the InstanceFleet resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Provisioned
On intDemand Capacity - The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.
- Provisioned
Spot intCapacity - The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.
- Id string
- The provider-assigned unique ID for this managed resource.
- Provisioned
On intDemand Capacity - The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.
- Provisioned
Spot intCapacity - The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.
- id String
- The provider-assigned unique ID for this managed resource.
- provisioned
On IntegerDemand Capacity - The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.
- provisioned
Spot IntegerCapacity - The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.
- id string
- The provider-assigned unique ID for this managed resource.
- provisioned
On numberDemand Capacity - The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.
- provisioned
Spot numberCapacity - The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.
- id str
- The provider-assigned unique ID for this managed resource.
- provisioned_
on_ intdemand_ capacity - The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.
- provisioned_
spot_ intcapacity - The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.
- id String
- The provider-assigned unique ID for this managed resource.
- provisioned
On NumberDemand Capacity - The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.
- provisioned
Spot NumberCapacity - The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.
Look up Existing InstanceFleet Resource
Get an existing InstanceFleet 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?: InstanceFleetState, opts?: CustomResourceOptions): InstanceFleet
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
instance_type_configs: Optional[Sequence[InstanceFleetInstanceTypeConfigArgs]] = None,
launch_specifications: Optional[InstanceFleetLaunchSpecificationsArgs] = None,
name: Optional[str] = None,
provisioned_on_demand_capacity: Optional[int] = None,
provisioned_spot_capacity: Optional[int] = None,
target_on_demand_capacity: Optional[int] = None,
target_spot_capacity: Optional[int] = None) -> InstanceFleet
func GetInstanceFleet(ctx *Context, name string, id IDInput, state *InstanceFleetState, opts ...ResourceOption) (*InstanceFleet, error)
public static InstanceFleet Get(string name, Input<string> id, InstanceFleetState? state, CustomResourceOptions? opts = null)
public static InstanceFleet get(String name, Output<String> id, InstanceFleetState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Cluster
Id string - ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
- Instance
Type List<InstanceConfigs Fleet Instance Type Config> - Configuration block for instance fleet
- Launch
Specifications InstanceFleet Launch Specifications - Configuration block for launch specification
- Name string
- Friendly name given to the instance fleet.
- Provisioned
On intDemand Capacity - The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.
- Provisioned
Spot intCapacity - The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.
- Target
On intDemand Capacity - The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
- Target
Spot intCapacity - The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
- Cluster
Id string - ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
- Instance
Type []InstanceConfigs Fleet Instance Type Config Args - Configuration block for instance fleet
- Launch
Specifications InstanceFleet Launch Specifications Args - Configuration block for launch specification
- Name string
- Friendly name given to the instance fleet.
- Provisioned
On intDemand Capacity - The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.
- Provisioned
Spot intCapacity - The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.
- Target
On intDemand Capacity - The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
- Target
Spot intCapacity - The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
- cluster
Id String - ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
- instance
Type List<InstanceConfigs Fleet Instance Type Config> - Configuration block for instance fleet
- launch
Specifications InstanceFleet Launch Specifications - Configuration block for launch specification
- name String
- Friendly name given to the instance fleet.
- provisioned
On IntegerDemand Capacity - The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.
- provisioned
Spot IntegerCapacity - The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.
- target
On IntegerDemand Capacity - The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
- target
Spot IntegerCapacity - The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
- cluster
Id string - ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
- instance
Type InstanceConfigs Fleet Instance Type Config[] - Configuration block for instance fleet
- launch
Specifications InstanceFleet Launch Specifications - Configuration block for launch specification
- name string
- Friendly name given to the instance fleet.
- provisioned
On numberDemand Capacity - The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.
- provisioned
Spot numberCapacity - The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.
- target
On numberDemand Capacity - The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
- target
Spot numberCapacity - The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
- cluster_
id str - ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
- instance_
type_ Sequence[Instanceconfigs Fleet Instance Type Config Args] - Configuration block for instance fleet
- launch_
specifications InstanceFleet Launch Specifications Args - Configuration block for launch specification
- name str
- Friendly name given to the instance fleet.
- provisioned_
on_ intdemand_ capacity - The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.
- provisioned_
spot_ intcapacity - The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.
- target_
on_ intdemand_ capacity - The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
- target_
spot_ intcapacity - The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
- cluster
Id String - ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.
- instance
Type List<Property Map>Configs - Configuration block for instance fleet
- launch
Specifications Property Map - Configuration block for launch specification
- name String
- Friendly name given to the instance fleet.
- provisioned
On NumberDemand Capacity - The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.
- provisioned
Spot NumberCapacity - The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.
- target
On NumberDemand Capacity - The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
- target
Spot NumberCapacity - The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
Supporting Types
InstanceFleetInstanceTypeConfig, InstanceFleetInstanceTypeConfigArgs
- Instance
Type string - An EC2 instance type, such as m4.xlarge.
- Bid
Price string - The bid price for each EC2 Spot instance type as defined by
instance_type
. Expressed in USD. If neitherbid_price
norbid_price_as_percentage_of_on_demand_price
is provided,bid_price_as_percentage_of_on_demand_price
defaults to 100%. - Bid
Price doubleAs Percentage Of On Demand Price - The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by
instance_type
. Expressed as a number (for example, 20 specifies 20%). If neitherbid_price
norbid_price_as_percentage_of_on_demand_price
is provided,bid_price_as_percentage_of_on_demand_price
defaults to 100%. - Configurations
List<Instance
Fleet Instance Type Config Configuration> - A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster. List of
configuration
blocks. - Ebs
Configs List<InstanceFleet Instance Type Config Ebs Config> - Configuration block(s) for EBS volumes attached to each instance in the instance group. Detailed below.
- Weighted
Capacity int - The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in
aws.emr.InstanceFleet
.
- Instance
Type string - An EC2 instance type, such as m4.xlarge.
- Bid
Price string - The bid price for each EC2 Spot instance type as defined by
instance_type
. Expressed in USD. If neitherbid_price
norbid_price_as_percentage_of_on_demand_price
is provided,bid_price_as_percentage_of_on_demand_price
defaults to 100%. - Bid
Price float64As Percentage Of On Demand Price - The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by
instance_type
. Expressed as a number (for example, 20 specifies 20%). If neitherbid_price
norbid_price_as_percentage_of_on_demand_price
is provided,bid_price_as_percentage_of_on_demand_price
defaults to 100%. - Configurations
[]Instance
Fleet Instance Type Config Configuration - A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster. List of
configuration
blocks. - Ebs
Configs []InstanceFleet Instance Type Config Ebs Config - Configuration block(s) for EBS volumes attached to each instance in the instance group. Detailed below.
- Weighted
Capacity int - The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in
aws.emr.InstanceFleet
.
- instance
Type String - An EC2 instance type, such as m4.xlarge.
- bid
Price String - The bid price for each EC2 Spot instance type as defined by
instance_type
. Expressed in USD. If neitherbid_price
norbid_price_as_percentage_of_on_demand_price
is provided,bid_price_as_percentage_of_on_demand_price
defaults to 100%. - bid
Price DoubleAs Percentage Of On Demand Price - The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by
instance_type
. Expressed as a number (for example, 20 specifies 20%). If neitherbid_price
norbid_price_as_percentage_of_on_demand_price
is provided,bid_price_as_percentage_of_on_demand_price
defaults to 100%. - configurations
List<Instance
Fleet Instance Type Config Configuration> - A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster. List of
configuration
blocks. - ebs
Configs List<InstanceFleet Instance Type Config Ebs Config> - Configuration block(s) for EBS volumes attached to each instance in the instance group. Detailed below.
- weighted
Capacity Integer - The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in
aws.emr.InstanceFleet
.
- instance
Type string - An EC2 instance type, such as m4.xlarge.
- bid
Price string - The bid price for each EC2 Spot instance type as defined by
instance_type
. Expressed in USD. If neitherbid_price
norbid_price_as_percentage_of_on_demand_price
is provided,bid_price_as_percentage_of_on_demand_price
defaults to 100%. - bid
Price numberAs Percentage Of On Demand Price - The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by
instance_type
. Expressed as a number (for example, 20 specifies 20%). If neitherbid_price
norbid_price_as_percentage_of_on_demand_price
is provided,bid_price_as_percentage_of_on_demand_price
defaults to 100%. - configurations
Instance
Fleet Instance Type Config Configuration[] - A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster. List of
configuration
blocks. - ebs
Configs InstanceFleet Instance Type Config Ebs Config[] - Configuration block(s) for EBS volumes attached to each instance in the instance group. Detailed below.
- weighted
Capacity number - The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in
aws.emr.InstanceFleet
.
- instance_
type str - An EC2 instance type, such as m4.xlarge.
- bid_
price str - The bid price for each EC2 Spot instance type as defined by
instance_type
. Expressed in USD. If neitherbid_price
norbid_price_as_percentage_of_on_demand_price
is provided,bid_price_as_percentage_of_on_demand_price
defaults to 100%. - bid_
price_ floatas_ percentage_ of_ on_ demand_ price - The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by
instance_type
. Expressed as a number (for example, 20 specifies 20%). If neitherbid_price
norbid_price_as_percentage_of_on_demand_price
is provided,bid_price_as_percentage_of_on_demand_price
defaults to 100%. - configurations
Sequence[Instance
Fleet Instance Type Config Configuration] - A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster. List of
configuration
blocks. - ebs_
configs Sequence[InstanceFleet Instance Type Config Ebs Config] - Configuration block(s) for EBS volumes attached to each instance in the instance group. Detailed below.
- weighted_
capacity int - The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in
aws.emr.InstanceFleet
.
- instance
Type String - An EC2 instance type, such as m4.xlarge.
- bid
Price String - The bid price for each EC2 Spot instance type as defined by
instance_type
. Expressed in USD. If neitherbid_price
norbid_price_as_percentage_of_on_demand_price
is provided,bid_price_as_percentage_of_on_demand_price
defaults to 100%. - bid
Price NumberAs Percentage Of On Demand Price - The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by
instance_type
. Expressed as a number (for example, 20 specifies 20%). If neitherbid_price
norbid_price_as_percentage_of_on_demand_price
is provided,bid_price_as_percentage_of_on_demand_price
defaults to 100%. - configurations List<Property Map>
- A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster. List of
configuration
blocks. - ebs
Configs List<Property Map> - Configuration block(s) for EBS volumes attached to each instance in the instance group. Detailed below.
- weighted
Capacity Number - The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in
aws.emr.InstanceFleet
.
InstanceFleetInstanceTypeConfigConfiguration, InstanceFleetInstanceTypeConfigConfigurationArgs
- Classification string
- The classification within a configuration.
- Properties Dictionary<string, string>
- A map of properties specified within a configuration classification
- Classification string
- The classification within a configuration.
- Properties map[string]string
- A map of properties specified within a configuration classification
- classification String
- The classification within a configuration.
- properties Map<String,String>
- A map of properties specified within a configuration classification
- classification string
- The classification within a configuration.
- properties {[key: string]: string}
- A map of properties specified within a configuration classification
- classification str
- The classification within a configuration.
- properties Mapping[str, str]
- A map of properties specified within a configuration classification
- classification String
- The classification within a configuration.
- properties Map<String>
- A map of properties specified within a configuration classification
InstanceFleetInstanceTypeConfigEbsConfig, InstanceFleetInstanceTypeConfigEbsConfigArgs
- Size int
- The volume size, in gibibytes (GiB).
- Type string
- The volume type. Valid options are
gp2
,io1
,standard
andst1
. See EBS Volume Types. - Iops int
- The number of I/O operations per second (IOPS) that the volume supports
- Volumes
Per intInstance - The number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1)
- Size int
- The volume size, in gibibytes (GiB).
- Type string
- The volume type. Valid options are
gp2
,io1
,standard
andst1
. See EBS Volume Types. - Iops int
- The number of I/O operations per second (IOPS) that the volume supports
- Volumes
Per intInstance - The number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1)
- size Integer
- The volume size, in gibibytes (GiB).
- type String
- The volume type. Valid options are
gp2
,io1
,standard
andst1
. See EBS Volume Types. - iops Integer
- The number of I/O operations per second (IOPS) that the volume supports
- volumes
Per IntegerInstance - The number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1)
- size number
- The volume size, in gibibytes (GiB).
- type string
- The volume type. Valid options are
gp2
,io1
,standard
andst1
. See EBS Volume Types. - iops number
- The number of I/O operations per second (IOPS) that the volume supports
- volumes
Per numberInstance - The number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1)
- size int
- The volume size, in gibibytes (GiB).
- type str
- The volume type. Valid options are
gp2
,io1
,standard
andst1
. See EBS Volume Types. - iops int
- The number of I/O operations per second (IOPS) that the volume supports
- volumes_
per_ intinstance - The number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1)
- size Number
- The volume size, in gibibytes (GiB).
- type String
- The volume type. Valid options are
gp2
,io1
,standard
andst1
. See EBS Volume Types. - iops Number
- The number of I/O operations per second (IOPS) that the volume supports
- volumes
Per NumberInstance - The number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1)
InstanceFleetLaunchSpecifications, InstanceFleetLaunchSpecificationsArgs
- On
Demand List<InstanceSpecifications Fleet Launch Specifications On Demand Specification> - Configuration block for on demand instances launch specifications
- Spot
Specifications List<InstanceFleet Launch Specifications Spot Specification> - Configuration block for spot instances launch specifications
- On
Demand []InstanceSpecifications Fleet Launch Specifications On Demand Specification - Configuration block for on demand instances launch specifications
- Spot
Specifications []InstanceFleet Launch Specifications Spot Specification - Configuration block for spot instances launch specifications
- on
Demand List<InstanceSpecifications Fleet Launch Specifications On Demand Specification> - Configuration block for on demand instances launch specifications
- spot
Specifications List<InstanceFleet Launch Specifications Spot Specification> - Configuration block for spot instances launch specifications
- on
Demand InstanceSpecifications Fleet Launch Specifications On Demand Specification[] - Configuration block for on demand instances launch specifications
- spot
Specifications InstanceFleet Launch Specifications Spot Specification[] - Configuration block for spot instances launch specifications
- on_
demand_ Sequence[Instancespecifications Fleet Launch Specifications On Demand Specification] - Configuration block for on demand instances launch specifications
- spot_
specifications Sequence[InstanceFleet Launch Specifications Spot Specification] - Configuration block for spot instances launch specifications
- on
Demand List<Property Map>Specifications - Configuration block for on demand instances launch specifications
- spot
Specifications List<Property Map> - Configuration block for spot instances launch specifications
InstanceFleetLaunchSpecificationsOnDemandSpecification, InstanceFleetLaunchSpecificationsOnDemandSpecificationArgs
- Allocation
Strategy string - Specifies one of the following strategies to launch Spot Instance fleets:
price-capacity-optimized
,capacity-optimized
,lowest-price
, ordiversified
. For more information on the provisioning strategies, see Allocation strategies for Spot Instances.
- Allocation
Strategy string - Specifies one of the following strategies to launch Spot Instance fleets:
price-capacity-optimized
,capacity-optimized
,lowest-price
, ordiversified
. For more information on the provisioning strategies, see Allocation strategies for Spot Instances.
- allocation
Strategy String - Specifies one of the following strategies to launch Spot Instance fleets:
price-capacity-optimized
,capacity-optimized
,lowest-price
, ordiversified
. For more information on the provisioning strategies, see Allocation strategies for Spot Instances.
- allocation
Strategy string - Specifies one of the following strategies to launch Spot Instance fleets:
price-capacity-optimized
,capacity-optimized
,lowest-price
, ordiversified
. For more information on the provisioning strategies, see Allocation strategies for Spot Instances.
- allocation_
strategy str - Specifies one of the following strategies to launch Spot Instance fleets:
price-capacity-optimized
,capacity-optimized
,lowest-price
, ordiversified
. For more information on the provisioning strategies, see Allocation strategies for Spot Instances.
- allocation
Strategy String - Specifies one of the following strategies to launch Spot Instance fleets:
price-capacity-optimized
,capacity-optimized
,lowest-price
, ordiversified
. For more information on the provisioning strategies, see Allocation strategies for Spot Instances.
InstanceFleetLaunchSpecificationsSpotSpecification, InstanceFleetLaunchSpecificationsSpotSpecificationArgs
- Allocation
Strategy string - Specifies one of the following strategies to launch Spot Instance fleets:
price-capacity-optimized
,capacity-optimized
,lowest-price
, ordiversified
. For more information on the provisioning strategies, see Allocation strategies for Spot Instances. - Timeout
Action string - The action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired; that is, when all Spot instances could not be provisioned within the Spot provisioning timeout. Valid values are
TERMINATE_CLUSTER
andSWITCH_TO_ON_DEMAND
. SWITCH_TO_ON_DEMAND specifies that if no Spot instances are available, On-Demand Instances should be provisioned to fulfill any remaining Spot capacity. - Timeout
Duration intMinutes - The spot provisioning timeout period in minutes. If Spot instances are not provisioned within this time period, the TimeOutAction is taken. Minimum value is 5 and maximum value is 1440. The timeout applies only during initial provisioning, when the cluster is first created.
- Block
Duration intMinutes - The defined duration for Spot instances (also known as Spot blocks) in minutes. When specified, the Spot instance does not terminate before the defined duration expires, and defined duration pricing for Spot instances applies. Valid values are 60, 120, 180, 240, 300, or 360. The duration period starts as soon as a Spot instance receives its instance ID. At the end of the duration, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates.
- Allocation
Strategy string - Specifies one of the following strategies to launch Spot Instance fleets:
price-capacity-optimized
,capacity-optimized
,lowest-price
, ordiversified
. For more information on the provisioning strategies, see Allocation strategies for Spot Instances. - Timeout
Action string - The action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired; that is, when all Spot instances could not be provisioned within the Spot provisioning timeout. Valid values are
TERMINATE_CLUSTER
andSWITCH_TO_ON_DEMAND
. SWITCH_TO_ON_DEMAND specifies that if no Spot instances are available, On-Demand Instances should be provisioned to fulfill any remaining Spot capacity. - Timeout
Duration intMinutes - The spot provisioning timeout period in minutes. If Spot instances are not provisioned within this time period, the TimeOutAction is taken. Minimum value is 5 and maximum value is 1440. The timeout applies only during initial provisioning, when the cluster is first created.
- Block
Duration intMinutes - The defined duration for Spot instances (also known as Spot blocks) in minutes. When specified, the Spot instance does not terminate before the defined duration expires, and defined duration pricing for Spot instances applies. Valid values are 60, 120, 180, 240, 300, or 360. The duration period starts as soon as a Spot instance receives its instance ID. At the end of the duration, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates.
- allocation
Strategy String - Specifies one of the following strategies to launch Spot Instance fleets:
price-capacity-optimized
,capacity-optimized
,lowest-price
, ordiversified
. For more information on the provisioning strategies, see Allocation strategies for Spot Instances. - timeout
Action String - The action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired; that is, when all Spot instances could not be provisioned within the Spot provisioning timeout. Valid values are
TERMINATE_CLUSTER
andSWITCH_TO_ON_DEMAND
. SWITCH_TO_ON_DEMAND specifies that if no Spot instances are available, On-Demand Instances should be provisioned to fulfill any remaining Spot capacity. - timeout
Duration IntegerMinutes - The spot provisioning timeout period in minutes. If Spot instances are not provisioned within this time period, the TimeOutAction is taken. Minimum value is 5 and maximum value is 1440. The timeout applies only during initial provisioning, when the cluster is first created.
- block
Duration IntegerMinutes - The defined duration for Spot instances (also known as Spot blocks) in minutes. When specified, the Spot instance does not terminate before the defined duration expires, and defined duration pricing for Spot instances applies. Valid values are 60, 120, 180, 240, 300, or 360. The duration period starts as soon as a Spot instance receives its instance ID. At the end of the duration, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates.
- allocation
Strategy string - Specifies one of the following strategies to launch Spot Instance fleets:
price-capacity-optimized
,capacity-optimized
,lowest-price
, ordiversified
. For more information on the provisioning strategies, see Allocation strategies for Spot Instances. - timeout
Action string - The action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired; that is, when all Spot instances could not be provisioned within the Spot provisioning timeout. Valid values are
TERMINATE_CLUSTER
andSWITCH_TO_ON_DEMAND
. SWITCH_TO_ON_DEMAND specifies that if no Spot instances are available, On-Demand Instances should be provisioned to fulfill any remaining Spot capacity. - timeout
Duration numberMinutes - The spot provisioning timeout period in minutes. If Spot instances are not provisioned within this time period, the TimeOutAction is taken. Minimum value is 5 and maximum value is 1440. The timeout applies only during initial provisioning, when the cluster is first created.
- block
Duration numberMinutes - The defined duration for Spot instances (also known as Spot blocks) in minutes. When specified, the Spot instance does not terminate before the defined duration expires, and defined duration pricing for Spot instances applies. Valid values are 60, 120, 180, 240, 300, or 360. The duration period starts as soon as a Spot instance receives its instance ID. At the end of the duration, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates.
- allocation_
strategy str - Specifies one of the following strategies to launch Spot Instance fleets:
price-capacity-optimized
,capacity-optimized
,lowest-price
, ordiversified
. For more information on the provisioning strategies, see Allocation strategies for Spot Instances. - timeout_
action str - The action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired; that is, when all Spot instances could not be provisioned within the Spot provisioning timeout. Valid values are
TERMINATE_CLUSTER
andSWITCH_TO_ON_DEMAND
. SWITCH_TO_ON_DEMAND specifies that if no Spot instances are available, On-Demand Instances should be provisioned to fulfill any remaining Spot capacity. - timeout_
duration_ intminutes - The spot provisioning timeout period in minutes. If Spot instances are not provisioned within this time period, the TimeOutAction is taken. Minimum value is 5 and maximum value is 1440. The timeout applies only during initial provisioning, when the cluster is first created.
- block_
duration_ intminutes - The defined duration for Spot instances (also known as Spot blocks) in minutes. When specified, the Spot instance does not terminate before the defined duration expires, and defined duration pricing for Spot instances applies. Valid values are 60, 120, 180, 240, 300, or 360. The duration period starts as soon as a Spot instance receives its instance ID. At the end of the duration, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates.
- allocation
Strategy String - Specifies one of the following strategies to launch Spot Instance fleets:
price-capacity-optimized
,capacity-optimized
,lowest-price
, ordiversified
. For more information on the provisioning strategies, see Allocation strategies for Spot Instances. - timeout
Action String - The action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired; that is, when all Spot instances could not be provisioned within the Spot provisioning timeout. Valid values are
TERMINATE_CLUSTER
andSWITCH_TO_ON_DEMAND
. SWITCH_TO_ON_DEMAND specifies that if no Spot instances are available, On-Demand Instances should be provisioned to fulfill any remaining Spot capacity. - timeout
Duration NumberMinutes - The spot provisioning timeout period in minutes. If Spot instances are not provisioned within this time period, the TimeOutAction is taken. Minimum value is 5 and maximum value is 1440. The timeout applies only during initial provisioning, when the cluster is first created.
- block
Duration NumberMinutes - The defined duration for Spot instances (also known as Spot blocks) in minutes. When specified, the Spot instance does not terminate before the defined duration expires, and defined duration pricing for Spot instances applies. Valid values are 60, 120, 180, 240, 300, or 360. The duration period starts as soon as a Spot instance receives its instance ID. At the end of the duration, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates.
Import
Using pulumi import
, import EMR Instance Fleet using the EMR Cluster identifier and Instance Fleet identifier separated by a forward slash (/
). For example:
$ pulumi import aws:emr/instanceFleet:InstanceFleet example j-123456ABCDEF/if-15EK4O09RZLNR
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.