InstanceGroup

class InstanceGroup : KotlinCustomResource

Provides an Elastic MapReduce Cluster Instance Group configuration. See Amazon Elastic MapReduce Documentation for more information.

NOTE: At this time, Instance Groups cannot be destroyed through the API nor web interface. Instance Groups are destroyed when the EMR Cluster is destroyed. this provider will resize any Instance Group to zero when destroying the resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.emr.InstanceGroup;
import com.pulumi.aws.emr.InstanceGroupArgs;
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 InstanceGroup("task", InstanceGroupArgs.builder()
.clusterId(aws_emr_cluster.tf-test-cluster().id())
.instanceCount(1)
.instanceType("m5.xlarge")
.build());
}
}

Import

EMR task instance group can be imported using their EMR Cluster id and Instance Group id separated by a forward-slash /, e.g.,

$ pulumi import aws:emr/instanceGroup:InstanceGroup task_group j-123456ABCDEF/ig-15EK4O09RZLNR

Properties

Link copied to clipboard

The autoscaling policy document. This is a JSON formatted string. See EMR Auto Scaling

Link copied to clipboard
val bidPrice: Output<String>?

If set, the bid price for each EC2 instance in the instance group, expressed in USD. By setting this attribute, the instance group is being declared as a Spot Instance, and will implicitly create a Spot request. Leave this blank to use On-Demand Instances.

Link copied to clipboard
val clusterId: Output<String>

ID of the EMR Cluster to attach to. Changing this forces a new resource to be created.

Link copied to clipboard

A JSON string for supplying list of configurations specific to the EMR instance group. Note that this can only be changed when using EMR release 5.21 or later.

Link copied to clipboard

One or more ebs_config blocks as defined below. Changing this forces a new resource to be created.

Link copied to clipboard
val ebsOptimized: Output<Boolean>?

Indicates whether an Amazon EBS volume is EBS-optimized. Changing this forces a new resource to be created.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val instanceCount: Output<Int>

target number of instances for the instance group. defaults to 0.

Link copied to clipboard
val instanceType: Output<String>

The EC2 instance type for all instances in the instance group. Changing this forces a new resource to be created.

Link copied to clipboard
val name: Output<String>

Human friendly name given to the instance group. Changing this forces a new resource to be created.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The number of instances currently running in this instance group.

Link copied to clipboard
val status: Output<String>

The current status of the instance group.

Link copied to clipboard
val urn: Output<String>