alicloud.emrv2.Cluster
Explore with Pulumi AI
Provides a EMR cluster resource. This resource is based on EMR’s new version OpenAPI.
For information about EMR New and how to use it, see Add a domain.
NOTE: Available since v1.199.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";
const config = new pulumi.Config();
const name = config.get("name") || "tf-example";
const default = alicloud.resourcemanager.getResourceGroups({
status: "OK",
});
const defaultGetKeys = alicloud.kms.getKeys({
status: "Enabled",
});
const defaultGetZones = alicloud.getZones({
availableInstanceType: "ecs.g7.xlarge",
});
const defaultNetwork = new alicloud.vpc.Network("default", {
vpcName: name,
cidrBlock: "172.16.0.0/12",
});
const defaultSwitch = new alicloud.vpc.Switch("default", {
vpcId: defaultNetwork.id,
cidrBlock: "172.16.0.0/21",
zoneId: defaultGetZones.then(defaultGetZones => defaultGetZones.zones?.[0]?.id),
vswitchName: name,
});
const defaultInteger = new random.index.Integer("default", {
max: 99999,
min: 10000,
});
const defaultEcsKeyPair = new alicloud.ecs.EcsKeyPair("default", {keyPairName: `${name}-${defaultInteger.result}`});
const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("default", {
name: name,
vpcId: defaultNetwork.id,
});
const defaultRole = new alicloud.ram.Role("default", {
name: name,
document: ` {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": [
"emr.aliyuncs.com",
"ecs.aliyuncs.com"
]
}
}
],
"Version": "1"
}
`,
description: "this is a role example.",
force: true,
});
const defaultCluster = new alicloud.emrv2.Cluster("default", {
nodeGroups: [
{
vswitchIds: [defaultSwitch.id],
instanceTypes: ["ecs.g7.xlarge"],
nodeCount: 1,
spotInstanceRemedy: false,
dataDisks: [{
count: 3,
category: "cloud_essd",
size: 80,
performanceLevel: "PL0",
}],
nodeGroupName: "emr-master",
paymentType: "PayAsYouGo",
withPublicIp: false,
gracefulShutdown: false,
systemDisk: {
category: "cloud_essd",
size: 80,
performanceLevel: "PL0",
count: 1,
},
nodeGroupType: "MASTER",
},
{
spotInstanceRemedy: false,
nodeGroupType: "CORE",
vswitchIds: [defaultSwitch.id],
nodeCount: 2,
gracefulShutdown: false,
systemDisk: {
performanceLevel: "PL0",
count: 1,
category: "cloud_essd",
size: 80,
},
dataDisks: [{
count: 3,
performanceLevel: "PL0",
category: "cloud_essd",
size: 80,
}],
nodeGroupName: "emr-core",
paymentType: "PayAsYouGo",
instanceTypes: ["ecs.g7.xlarge"],
withPublicIp: false,
},
],
deployMode: "NORMAL",
tags: {
Created: "TF",
For: "example",
},
releaseVersion: "EMR-5.10.0",
applications: [
"HADOOP-COMMON",
"HDFS",
"YARN",
],
nodeAttributes: [{
zoneId: defaultGetZones.then(defaultGetZones => defaultGetZones.zones?.[0]?.id),
keyPairName: defaultEcsKeyPair.id,
dataDiskEncrypted: true,
dataDiskKmsKeyId: defaultGetKeys.then(defaultGetKeys => defaultGetKeys.ids?.[0]),
vpcId: defaultNetwork.id,
ramRole: defaultRole.name,
securityGroupId: defaultSecurityGroup.id,
}],
resourceGroupId: _default.then(_default => _default.ids?.[0]),
clusterName: name,
paymentType: "PayAsYouGo",
clusterType: "DATAFLOW",
});
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf-example"
default = alicloud.resourcemanager.get_resource_groups(status="OK")
default_get_keys = alicloud.kms.get_keys(status="Enabled")
default_get_zones = alicloud.get_zones(available_instance_type="ecs.g7.xlarge")
default_network = alicloud.vpc.Network("default",
vpc_name=name,
cidr_block="172.16.0.0/12")
default_switch = alicloud.vpc.Switch("default",
vpc_id=default_network.id,
cidr_block="172.16.0.0/21",
zone_id=default_get_zones.zones[0].id,
vswitch_name=name)
default_integer = random.index.Integer("default",
max=99999,
min=10000)
default_ecs_key_pair = alicloud.ecs.EcsKeyPair("default", key_pair_name=f"{name}-{default_integer['result']}")
default_security_group = alicloud.ecs.SecurityGroup("default",
name=name,
vpc_id=default_network.id)
default_role = alicloud.ram.Role("default",
name=name,
document=""" {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": [
"emr.aliyuncs.com",
"ecs.aliyuncs.com"
]
}
}
],
"Version": "1"
}
""",
description="this is a role example.",
force=True)
default_cluster = alicloud.emrv2.Cluster("default",
node_groups=[
alicloud.emrv2.ClusterNodeGroupArgs(
vswitch_ids=[default_switch.id],
instance_types=["ecs.g7.xlarge"],
node_count=1,
spot_instance_remedy=False,
data_disks=[alicloud.emrv2.ClusterNodeGroupDataDiskArgs(
count=3,
category="cloud_essd",
size=80,
performance_level="PL0",
)],
node_group_name="emr-master",
payment_type="PayAsYouGo",
with_public_ip=False,
graceful_shutdown=False,
system_disk=alicloud.emrv2.ClusterNodeGroupSystemDiskArgs(
category="cloud_essd",
size=80,
performance_level="PL0",
count=1,
),
node_group_type="MASTER",
),
alicloud.emrv2.ClusterNodeGroupArgs(
spot_instance_remedy=False,
node_group_type="CORE",
vswitch_ids=[default_switch.id],
node_count=2,
graceful_shutdown=False,
system_disk=alicloud.emrv2.ClusterNodeGroupSystemDiskArgs(
performance_level="PL0",
count=1,
category="cloud_essd",
size=80,
),
data_disks=[alicloud.emrv2.ClusterNodeGroupDataDiskArgs(
count=3,
performance_level="PL0",
category="cloud_essd",
size=80,
)],
node_group_name="emr-core",
payment_type="PayAsYouGo",
instance_types=["ecs.g7.xlarge"],
with_public_ip=False,
),
],
deploy_mode="NORMAL",
tags={
"Created": "TF",
"For": "example",
},
release_version="EMR-5.10.0",
applications=[
"HADOOP-COMMON",
"HDFS",
"YARN",
],
node_attributes=[alicloud.emrv2.ClusterNodeAttributeArgs(
zone_id=default_get_zones.zones[0].id,
key_pair_name=default_ecs_key_pair.id,
data_disk_encrypted=True,
data_disk_kms_key_id=default_get_keys.ids[0],
vpc_id=default_network.id,
ram_role=default_role.name,
security_group_id=default_security_group.id,
)],
resource_group_id=default.ids[0],
cluster_name=name,
payment_type="PayAsYouGo",
cluster_type="DATAFLOW")
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/emrv2"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/kms"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ram"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "tf-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{
Status: pulumi.StringRef("OK"),
}, nil)
if err != nil {
return err
}
defaultGetKeys, err := kms.GetKeys(ctx, &kms.GetKeysArgs{
Status: pulumi.StringRef("Enabled"),
}, nil)
if err != nil {
return err
}
defaultGetZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
AvailableInstanceType: pulumi.StringRef("ecs.g7.xlarge"),
}, nil)
if err != nil {
return err
}
defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
VpcName: pulumi.String(name),
CidrBlock: pulumi.String("172.16.0.0/12"),
})
if err != nil {
return err
}
defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
VpcId: defaultNetwork.ID(),
CidrBlock: pulumi.String("172.16.0.0/21"),
ZoneId: pulumi.String(defaultGetZones.Zones[0].Id),
VswitchName: pulumi.String(name),
})
if err != nil {
return err
}
defaultInteger, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
Max: 99999,
Min: 10000,
})
if err != nil {
return err
}
defaultEcsKeyPair, err := ecs.NewEcsKeyPair(ctx, "default", &ecs.EcsKeyPairArgs{
KeyPairName: pulumi.String(fmt.Sprintf("%v-%v", name, defaultInteger.Result)),
})
if err != nil {
return err
}
defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "default", &ecs.SecurityGroupArgs{
Name: pulumi.String(name),
VpcId: defaultNetwork.ID(),
})
if err != nil {
return err
}
defaultRole, err := ram.NewRole(ctx, "default", &ram.RoleArgs{
Name: pulumi.String(name),
Document: pulumi.String(` {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": [
"emr.aliyuncs.com",
"ecs.aliyuncs.com"
]
}
}
],
"Version": "1"
}
`),
Description: pulumi.String("this is a role example."),
Force: pulumi.Bool(true),
})
if err != nil {
return err
}
_, err = emrv2.NewCluster(ctx, "default", &emrv2.ClusterArgs{
NodeGroups: emrv2.ClusterNodeGroupArray{
&emrv2.ClusterNodeGroupArgs{
VswitchIds: pulumi.StringArray{
defaultSwitch.ID(),
},
InstanceTypes: pulumi.StringArray{
pulumi.String("ecs.g7.xlarge"),
},
NodeCount: pulumi.Int(1),
SpotInstanceRemedy: pulumi.Bool(false),
DataDisks: emrv2.ClusterNodeGroupDataDiskArray{
&emrv2.ClusterNodeGroupDataDiskArgs{
Count: pulumi.Int(3),
Category: pulumi.String("cloud_essd"),
Size: pulumi.Int(80),
PerformanceLevel: pulumi.String("PL0"),
},
},
NodeGroupName: pulumi.String("emr-master"),
PaymentType: pulumi.String("PayAsYouGo"),
WithPublicIp: pulumi.Bool(false),
GracefulShutdown: pulumi.Bool(false),
SystemDisk: &emrv2.ClusterNodeGroupSystemDiskArgs{
Category: pulumi.String("cloud_essd"),
Size: pulumi.Int(80),
PerformanceLevel: pulumi.String("PL0"),
Count: pulumi.Int(1),
},
NodeGroupType: pulumi.String("MASTER"),
},
&emrv2.ClusterNodeGroupArgs{
SpotInstanceRemedy: pulumi.Bool(false),
NodeGroupType: pulumi.String("CORE"),
VswitchIds: pulumi.StringArray{
defaultSwitch.ID(),
},
NodeCount: pulumi.Int(2),
GracefulShutdown: pulumi.Bool(false),
SystemDisk: &emrv2.ClusterNodeGroupSystemDiskArgs{
PerformanceLevel: pulumi.String("PL0"),
Count: pulumi.Int(1),
Category: pulumi.String("cloud_essd"),
Size: pulumi.Int(80),
},
DataDisks: emrv2.ClusterNodeGroupDataDiskArray{
&emrv2.ClusterNodeGroupDataDiskArgs{
Count: pulumi.Int(3),
PerformanceLevel: pulumi.String("PL0"),
Category: pulumi.String("cloud_essd"),
Size: pulumi.Int(80),
},
},
NodeGroupName: pulumi.String("emr-core"),
PaymentType: pulumi.String("PayAsYouGo"),
InstanceTypes: pulumi.StringArray{
pulumi.String("ecs.g7.xlarge"),
},
WithPublicIp: pulumi.Bool(false),
},
},
DeployMode: pulumi.String("NORMAL"),
Tags: pulumi.Map{
"Created": pulumi.Any("TF"),
"For": pulumi.Any("example"),
},
ReleaseVersion: pulumi.String("EMR-5.10.0"),
Applications: pulumi.StringArray{
pulumi.String("HADOOP-COMMON"),
pulumi.String("HDFS"),
pulumi.String("YARN"),
},
NodeAttributes: emrv2.ClusterNodeAttributeArray{
&emrv2.ClusterNodeAttributeArgs{
ZoneId: pulumi.String(defaultGetZones.Zones[0].Id),
KeyPairName: defaultEcsKeyPair.ID(),
DataDiskEncrypted: pulumi.Bool(true),
DataDiskKmsKeyId: pulumi.String(defaultGetKeys.Ids[0]),
VpcId: defaultNetwork.ID(),
RamRole: defaultRole.Name,
SecurityGroupId: defaultSecurityGroup.ID(),
},
},
ResourceGroupId: pulumi.String(_default.Ids[0]),
ClusterName: pulumi.String(name),
PaymentType: pulumi.String("PayAsYouGo"),
ClusterType: pulumi.String("DATAFLOW"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "tf-example";
var @default = AliCloud.ResourceManager.GetResourceGroups.Invoke(new()
{
Status = "OK",
});
var defaultGetKeys = AliCloud.Kms.GetKeys.Invoke(new()
{
Status = "Enabled",
});
var defaultGetZones = AliCloud.GetZones.Invoke(new()
{
AvailableInstanceType = "ecs.g7.xlarge",
});
var defaultNetwork = new AliCloud.Vpc.Network("default", new()
{
VpcName = name,
CidrBlock = "172.16.0.0/12",
});
var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
{
VpcId = defaultNetwork.Id,
CidrBlock = "172.16.0.0/21",
ZoneId = defaultGetZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
VswitchName = name,
});
var defaultInteger = new Random.Index.Integer("default", new()
{
Max = 99999,
Min = 10000,
});
var defaultEcsKeyPair = new AliCloud.Ecs.EcsKeyPair("default", new()
{
KeyPairName = $"{name}-{defaultInteger.Result}",
});
var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("default", new()
{
Name = name,
VpcId = defaultNetwork.Id,
});
var defaultRole = new AliCloud.Ram.Role("default", new()
{
Name = name,
Document = @" {
""Statement"": [
{
""Action"": ""sts:AssumeRole"",
""Effect"": ""Allow"",
""Principal"": {
""Service"": [
""emr.aliyuncs.com"",
""ecs.aliyuncs.com""
]
}
}
],
""Version"": ""1""
}
",
Description = "this is a role example.",
Force = true,
});
var defaultCluster = new AliCloud.Emrv2.Cluster("default", new()
{
NodeGroups = new[]
{
new AliCloud.Emrv2.Inputs.ClusterNodeGroupArgs
{
VswitchIds = new[]
{
defaultSwitch.Id,
},
InstanceTypes = new[]
{
"ecs.g7.xlarge",
},
NodeCount = 1,
SpotInstanceRemedy = false,
DataDisks = new[]
{
new AliCloud.Emrv2.Inputs.ClusterNodeGroupDataDiskArgs
{
Count = 3,
Category = "cloud_essd",
Size = 80,
PerformanceLevel = "PL0",
},
},
NodeGroupName = "emr-master",
PaymentType = "PayAsYouGo",
WithPublicIp = false,
GracefulShutdown = false,
SystemDisk = new AliCloud.Emrv2.Inputs.ClusterNodeGroupSystemDiskArgs
{
Category = "cloud_essd",
Size = 80,
PerformanceLevel = "PL0",
Count = 1,
},
NodeGroupType = "MASTER",
},
new AliCloud.Emrv2.Inputs.ClusterNodeGroupArgs
{
SpotInstanceRemedy = false,
NodeGroupType = "CORE",
VswitchIds = new[]
{
defaultSwitch.Id,
},
NodeCount = 2,
GracefulShutdown = false,
SystemDisk = new AliCloud.Emrv2.Inputs.ClusterNodeGroupSystemDiskArgs
{
PerformanceLevel = "PL0",
Count = 1,
Category = "cloud_essd",
Size = 80,
},
DataDisks = new[]
{
new AliCloud.Emrv2.Inputs.ClusterNodeGroupDataDiskArgs
{
Count = 3,
PerformanceLevel = "PL0",
Category = "cloud_essd",
Size = 80,
},
},
NodeGroupName = "emr-core",
PaymentType = "PayAsYouGo",
InstanceTypes = new[]
{
"ecs.g7.xlarge",
},
WithPublicIp = false,
},
},
DeployMode = "NORMAL",
Tags =
{
{ "Created", "TF" },
{ "For", "example" },
},
ReleaseVersion = "EMR-5.10.0",
Applications = new[]
{
"HADOOP-COMMON",
"HDFS",
"YARN",
},
NodeAttributes = new[]
{
new AliCloud.Emrv2.Inputs.ClusterNodeAttributeArgs
{
ZoneId = defaultGetZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
KeyPairName = defaultEcsKeyPair.Id,
DataDiskEncrypted = true,
DataDiskKmsKeyId = defaultGetKeys.Apply(getKeysResult => getKeysResult.Ids[0]),
VpcId = defaultNetwork.Id,
RamRole = defaultRole.Name,
SecurityGroupId = defaultSecurityGroup.Id,
},
},
ResourceGroupId = @default.Apply(@default => @default.Apply(getResourceGroupsResult => getResourceGroupsResult.Ids[0])),
ClusterName = name,
PaymentType = "PayAsYouGo",
ClusterType = "DATAFLOW",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
import com.pulumi.alicloud.kms.KmsFunctions;
import com.pulumi.alicloud.kms.inputs.GetKeysArgs;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.random.integer;
import com.pulumi.random.IntegerArgs;
import com.pulumi.alicloud.ecs.EcsKeyPair;
import com.pulumi.alicloud.ecs.EcsKeyPairArgs;
import com.pulumi.alicloud.ecs.SecurityGroup;
import com.pulumi.alicloud.ecs.SecurityGroupArgs;
import com.pulumi.alicloud.ram.Role;
import com.pulumi.alicloud.ram.RoleArgs;
import com.pulumi.alicloud.emrv2.Cluster;
import com.pulumi.alicloud.emrv2.ClusterArgs;
import com.pulumi.alicloud.emrv2.inputs.ClusterNodeGroupArgs;
import com.pulumi.alicloud.emrv2.inputs.ClusterNodeGroupSystemDiskArgs;
import com.pulumi.alicloud.emrv2.inputs.ClusterNodeAttributeArgs;
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf-example");
final var default = ResourcemanagerFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
.status("OK")
.build());
final var defaultGetKeys = KmsFunctions.getKeys(GetKeysArgs.builder()
.status("Enabled")
.build());
final var defaultGetZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
.availableInstanceType("ecs.g7.xlarge")
.build());
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("172.16.0.0/12")
.build());
var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
.vpcId(defaultNetwork.id())
.cidrBlock("172.16.0.0/21")
.zoneId(defaultGetZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.vswitchName(name)
.build());
var defaultInteger = new Integer("defaultInteger", IntegerArgs.builder()
.max(99999)
.min(10000)
.build());
var defaultEcsKeyPair = new EcsKeyPair("defaultEcsKeyPair", EcsKeyPairArgs.builder()
.keyPairName(String.format("%s-%s", name,defaultInteger.result()))
.build());
var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
.name(name)
.vpcId(defaultNetwork.id())
.build());
var defaultRole = new Role("defaultRole", RoleArgs.builder()
.name(name)
.document("""
{
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": [
"emr.aliyuncs.com",
"ecs.aliyuncs.com"
]
}
}
],
"Version": "1"
}
""")
.description("this is a role example.")
.force(true)
.build());
var defaultCluster = new Cluster("defaultCluster", ClusterArgs.builder()
.nodeGroups(
ClusterNodeGroupArgs.builder()
.vswitchIds(defaultSwitch.id())
.instanceTypes("ecs.g7.xlarge")
.nodeCount("1")
.spotInstanceRemedy("false")
.dataDisks(ClusterNodeGroupDataDiskArgs.builder()
.count("3")
.category("cloud_essd")
.size("80")
.performanceLevel("PL0")
.build())
.nodeGroupName("emr-master")
.paymentType("PayAsYouGo")
.withPublicIp("false")
.gracefulShutdown("false")
.systemDisk(ClusterNodeGroupSystemDiskArgs.builder()
.category("cloud_essd")
.size("80")
.performanceLevel("PL0")
.count("1")
.build())
.nodeGroupType("MASTER")
.build(),
ClusterNodeGroupArgs.builder()
.spotInstanceRemedy("false")
.nodeGroupType("CORE")
.vswitchIds(defaultSwitch.id())
.nodeCount("2")
.gracefulShutdown("false")
.systemDisk(ClusterNodeGroupSystemDiskArgs.builder()
.performanceLevel("PL0")
.count("1")
.category("cloud_essd")
.size("80")
.build())
.dataDisks(ClusterNodeGroupDataDiskArgs.builder()
.count("3")
.performanceLevel("PL0")
.category("cloud_essd")
.size("80")
.build())
.nodeGroupName("emr-core")
.paymentType("PayAsYouGo")
.instanceTypes("ecs.g7.xlarge")
.withPublicIp("false")
.build())
.deployMode("NORMAL")
.tags(Map.ofEntries(
Map.entry("Created", "TF"),
Map.entry("For", "example")
))
.releaseVersion("EMR-5.10.0")
.applications(
"HADOOP-COMMON",
"HDFS",
"YARN")
.nodeAttributes(ClusterNodeAttributeArgs.builder()
.zoneId(defaultGetZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.keyPairName(defaultEcsKeyPair.id())
.dataDiskEncrypted("true")
.dataDiskKmsKeyId(defaultGetKeys.applyValue(getKeysResult -> getKeysResult.ids()[0]))
.vpcId(defaultNetwork.id())
.ramRole(defaultRole.name())
.securityGroupId(defaultSecurityGroup.id())
.build())
.resourceGroupId(default_.ids()[0])
.clusterName(name)
.paymentType("PayAsYouGo")
.clusterType("DATAFLOW")
.build());
}
}
configuration:
name:
type: string
default: tf-example
resources:
defaultNetwork:
type: alicloud:vpc:Network
name: default
properties:
vpcName: ${name}
cidrBlock: 172.16.0.0/12
defaultSwitch:
type: alicloud:vpc:Switch
name: default
properties:
vpcId: ${defaultNetwork.id}
cidrBlock: 172.16.0.0/21
zoneId: ${defaultGetZones.zones[0].id}
vswitchName: ${name}
defaultInteger:
type: random:integer
name: default
properties:
max: 99999
min: 10000
defaultEcsKeyPair:
type: alicloud:ecs:EcsKeyPair
name: default
properties:
keyPairName: ${name}-${defaultInteger.result}
defaultSecurityGroup:
type: alicloud:ecs:SecurityGroup
name: default
properties:
name: ${name}
vpcId: ${defaultNetwork.id}
defaultRole:
type: alicloud:ram:Role
name: default
properties:
name: ${name}
document: |2
{
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": [
"emr.aliyuncs.com",
"ecs.aliyuncs.com"
]
}
}
],
"Version": "1"
}
description: this is a role example.
force: true
defaultCluster:
type: alicloud:emrv2:Cluster
name: default
properties:
nodeGroups:
- vswitchIds:
- ${defaultSwitch.id}
instanceTypes:
- ecs.g7.xlarge
nodeCount: '1'
spotInstanceRemedy: 'false'
dataDisks:
- count: '3'
category: cloud_essd
size: '80'
performanceLevel: PL0
nodeGroupName: emr-master
paymentType: PayAsYouGo
withPublicIp: 'false'
gracefulShutdown: 'false'
systemDisk:
category: cloud_essd
size: '80'
performanceLevel: PL0
count: '1'
nodeGroupType: MASTER
- spotInstanceRemedy: 'false'
nodeGroupType: CORE
vswitchIds:
- ${defaultSwitch.id}
nodeCount: '2'
gracefulShutdown: 'false'
systemDisk:
performanceLevel: PL0
count: '1'
category: cloud_essd
size: '80'
dataDisks:
- count: '3'
performanceLevel: PL0
category: cloud_essd
size: '80'
nodeGroupName: emr-core
paymentType: PayAsYouGo
instanceTypes:
- ecs.g7.xlarge
withPublicIp: 'false'
deployMode: NORMAL
tags:
Created: TF
For: example
releaseVersion: EMR-5.10.0
applications:
- HADOOP-COMMON
- HDFS
- YARN
nodeAttributes:
- zoneId: ${defaultGetZones.zones[0].id}
keyPairName: ${defaultEcsKeyPair.id}
dataDiskEncrypted: 'true'
dataDiskKmsKeyId: ${defaultGetKeys.ids[0]}
vpcId: ${defaultNetwork.id}
ramRole: ${defaultRole.name}
securityGroupId: ${defaultSecurityGroup.id}
resourceGroupId: ${default.ids[0]}
clusterName: ${name}
paymentType: PayAsYouGo
clusterType: DATAFLOW
variables:
default:
fn::invoke:
Function: alicloud:resourcemanager:getResourceGroups
Arguments:
status: OK
defaultGetKeys:
fn::invoke:
Function: alicloud:kms:getKeys
Arguments:
status: Enabled
defaultGetZones:
fn::invoke:
Function: alicloud:getZones
Arguments:
availableInstanceType: ecs.g7.xlarge
Create Cluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Cluster(name: string, args: ClusterArgs, opts?: CustomResourceOptions);
@overload
def Cluster(resource_name: str,
args: ClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Cluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
node_attributes: Optional[Sequence[ClusterNodeAttributeArgs]] = None,
applications: Optional[Sequence[str]] = None,
release_version: Optional[str] = None,
cluster_name: Optional[str] = None,
cluster_type: Optional[str] = None,
node_groups: Optional[Sequence[ClusterNodeGroupArgs]] = None,
log_collect_strategy: Optional[str] = None,
application_configs: Optional[Sequence[ClusterApplicationConfigArgs]] = None,
deploy_mode: Optional[str] = None,
payment_type: Optional[str] = None,
bootstrap_scripts: Optional[Sequence[ClusterBootstrapScriptArgs]] = None,
resource_group_id: Optional[str] = None,
security_mode: Optional[str] = None,
subscription_config: Optional[ClusterSubscriptionConfigArgs] = None,
tags: Optional[Mapping[str, Any]] = None)
func NewCluster(ctx *Context, name string, args ClusterArgs, opts ...ResourceOption) (*Cluster, error)
public Cluster(string name, ClusterArgs args, CustomResourceOptions? opts = null)
public Cluster(String name, ClusterArgs args)
public Cluster(String name, ClusterArgs args, CustomResourceOptions options)
type: alicloud:emrv2:Cluster
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 ClusterArgs
- 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 ClusterArgs
- 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 ClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClusterArgs
- 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 exampleclusterResourceResourceFromEmrv2cluster = new AliCloud.Emrv2.Cluster("exampleclusterResourceResourceFromEmrv2cluster", new()
{
NodeAttributes = new[]
{
new AliCloud.Emrv2.Inputs.ClusterNodeAttributeArgs
{
KeyPairName = "string",
RamRole = "string",
SecurityGroupId = "string",
VpcId = "string",
ZoneId = "string",
DataDiskEncrypted = false,
DataDiskKmsKeyId = "string",
},
},
Applications = new[]
{
"string",
},
ReleaseVersion = "string",
ClusterName = "string",
ClusterType = "string",
NodeGroups = new[]
{
new AliCloud.Emrv2.Inputs.ClusterNodeGroupArgs
{
NodeCount = 0,
SystemDisk = new AliCloud.Emrv2.Inputs.ClusterNodeGroupSystemDiskArgs
{
Category = "string",
Size = 0,
Count = 0,
PerformanceLevel = "string",
},
DataDisks = new[]
{
new AliCloud.Emrv2.Inputs.ClusterNodeGroupDataDiskArgs
{
Category = "string",
Size = 0,
Count = 0,
PerformanceLevel = "string",
},
},
NodeGroupType = "string",
NodeGroupName = "string",
InstanceTypes = new[]
{
"string",
},
GracefulShutdown = false,
AdditionalSecurityGroupIds = new[]
{
"string",
},
DeploymentSetStrategy = "string",
NodeResizeStrategy = "string",
PaymentType = "string",
SpotBidPrices = new[]
{
new AliCloud.Emrv2.Inputs.ClusterNodeGroupSpotBidPriceArgs
{
BidPrice = 0,
InstanceType = "string",
},
},
SpotInstanceRemedy = false,
SubscriptionConfig = new AliCloud.Emrv2.Inputs.ClusterNodeGroupSubscriptionConfigArgs
{
PaymentDuration = 0,
PaymentDurationUnit = "string",
AutoPayOrder = false,
AutoRenew = false,
AutoRenewDuration = 0,
AutoRenewDurationUnit = "string",
},
CostOptimizedConfig = new AliCloud.Emrv2.Inputs.ClusterNodeGroupCostOptimizedConfigArgs
{
OnDemandBaseCapacity = 0,
OnDemandPercentageAboveBaseCapacity = 0,
SpotInstancePools = 0,
},
VswitchIds = new[]
{
"string",
},
WithPublicIp = false,
},
},
LogCollectStrategy = "string",
ApplicationConfigs = new[]
{
new AliCloud.Emrv2.Inputs.ClusterApplicationConfigArgs
{
ApplicationName = "string",
ConfigFileName = "string",
ConfigItemKey = "string",
ConfigItemValue = "string",
ConfigDescription = "string",
ConfigScope = "string",
NodeGroupId = "string",
NodeGroupName = "string",
},
},
DeployMode = "string",
PaymentType = "string",
BootstrapScripts = new[]
{
new AliCloud.Emrv2.Inputs.ClusterBootstrapScriptArgs
{
ExecutionFailStrategy = "string",
ExecutionMoment = "string",
NodeSelector = new AliCloud.Emrv2.Inputs.ClusterBootstrapScriptNodeSelectorArgs
{
NodeSelectType = "string",
NodeGroupId = "string",
NodeGroupName = "string",
NodeGroupTypes = new[]
{
"string",
},
NodeNames = new[]
{
"string",
},
},
ScriptArgs = "string",
ScriptName = "string",
ScriptPath = "string",
Priority = 0,
},
},
ResourceGroupId = "string",
SecurityMode = "string",
SubscriptionConfig = new AliCloud.Emrv2.Inputs.ClusterSubscriptionConfigArgs
{
PaymentDuration = 0,
PaymentDurationUnit = "string",
AutoPayOrder = false,
AutoRenew = false,
AutoRenewDuration = 0,
AutoRenewDurationUnit = "string",
},
Tags =
{
{ "string", "any" },
},
});
example, err := emrv2.NewCluster(ctx, "exampleclusterResourceResourceFromEmrv2cluster", &emrv2.ClusterArgs{
NodeAttributes: emrv2.ClusterNodeAttributeArray{
&emrv2.ClusterNodeAttributeArgs{
KeyPairName: pulumi.String("string"),
RamRole: pulumi.String("string"),
SecurityGroupId: pulumi.String("string"),
VpcId: pulumi.String("string"),
ZoneId: pulumi.String("string"),
DataDiskEncrypted: pulumi.Bool(false),
DataDiskKmsKeyId: pulumi.String("string"),
},
},
Applications: pulumi.StringArray{
pulumi.String("string"),
},
ReleaseVersion: pulumi.String("string"),
ClusterName: pulumi.String("string"),
ClusterType: pulumi.String("string"),
NodeGroups: emrv2.ClusterNodeGroupArray{
&emrv2.ClusterNodeGroupArgs{
NodeCount: pulumi.Int(0),
SystemDisk: &emrv2.ClusterNodeGroupSystemDiskArgs{
Category: pulumi.String("string"),
Size: pulumi.Int(0),
Count: pulumi.Int(0),
PerformanceLevel: pulumi.String("string"),
},
DataDisks: emrv2.ClusterNodeGroupDataDiskArray{
&emrv2.ClusterNodeGroupDataDiskArgs{
Category: pulumi.String("string"),
Size: pulumi.Int(0),
Count: pulumi.Int(0),
PerformanceLevel: pulumi.String("string"),
},
},
NodeGroupType: pulumi.String("string"),
NodeGroupName: pulumi.String("string"),
InstanceTypes: pulumi.StringArray{
pulumi.String("string"),
},
GracefulShutdown: pulumi.Bool(false),
AdditionalSecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
DeploymentSetStrategy: pulumi.String("string"),
NodeResizeStrategy: pulumi.String("string"),
PaymentType: pulumi.String("string"),
SpotBidPrices: emrv2.ClusterNodeGroupSpotBidPriceArray{
&emrv2.ClusterNodeGroupSpotBidPriceArgs{
BidPrice: pulumi.Int(0),
InstanceType: pulumi.String("string"),
},
},
SpotInstanceRemedy: pulumi.Bool(false),
SubscriptionConfig: &emrv2.ClusterNodeGroupSubscriptionConfigArgs{
PaymentDuration: pulumi.Int(0),
PaymentDurationUnit: pulumi.String("string"),
AutoPayOrder: pulumi.Bool(false),
AutoRenew: pulumi.Bool(false),
AutoRenewDuration: pulumi.Int(0),
AutoRenewDurationUnit: pulumi.String("string"),
},
CostOptimizedConfig: &emrv2.ClusterNodeGroupCostOptimizedConfigArgs{
OnDemandBaseCapacity: pulumi.Int(0),
OnDemandPercentageAboveBaseCapacity: pulumi.Int(0),
SpotInstancePools: pulumi.Int(0),
},
VswitchIds: pulumi.StringArray{
pulumi.String("string"),
},
WithPublicIp: pulumi.Bool(false),
},
},
LogCollectStrategy: pulumi.String("string"),
ApplicationConfigs: emrv2.ClusterApplicationConfigArray{
&emrv2.ClusterApplicationConfigArgs{
ApplicationName: pulumi.String("string"),
ConfigFileName: pulumi.String("string"),
ConfigItemKey: pulumi.String("string"),
ConfigItemValue: pulumi.String("string"),
ConfigDescription: pulumi.String("string"),
ConfigScope: pulumi.String("string"),
NodeGroupId: pulumi.String("string"),
NodeGroupName: pulumi.String("string"),
},
},
DeployMode: pulumi.String("string"),
PaymentType: pulumi.String("string"),
BootstrapScripts: emrv2.ClusterBootstrapScriptArray{
&emrv2.ClusterBootstrapScriptArgs{
ExecutionFailStrategy: pulumi.String("string"),
ExecutionMoment: pulumi.String("string"),
NodeSelector: &emrv2.ClusterBootstrapScriptNodeSelectorArgs{
NodeSelectType: pulumi.String("string"),
NodeGroupId: pulumi.String("string"),
NodeGroupName: pulumi.String("string"),
NodeGroupTypes: pulumi.StringArray{
pulumi.String("string"),
},
NodeNames: pulumi.StringArray{
pulumi.String("string"),
},
},
ScriptArgs: pulumi.String("string"),
ScriptName: pulumi.String("string"),
ScriptPath: pulumi.String("string"),
Priority: pulumi.Int(0),
},
},
ResourceGroupId: pulumi.String("string"),
SecurityMode: pulumi.String("string"),
SubscriptionConfig: &emrv2.ClusterSubscriptionConfigArgs{
PaymentDuration: pulumi.Int(0),
PaymentDurationUnit: pulumi.String("string"),
AutoPayOrder: pulumi.Bool(false),
AutoRenew: pulumi.Bool(false),
AutoRenewDuration: pulumi.Int(0),
AutoRenewDurationUnit: pulumi.String("string"),
},
Tags: pulumi.Map{
"string": pulumi.Any("any"),
},
})
var exampleclusterResourceResourceFromEmrv2cluster = new Cluster("exampleclusterResourceResourceFromEmrv2cluster", ClusterArgs.builder()
.nodeAttributes(ClusterNodeAttributeArgs.builder()
.keyPairName("string")
.ramRole("string")
.securityGroupId("string")
.vpcId("string")
.zoneId("string")
.dataDiskEncrypted(false)
.dataDiskKmsKeyId("string")
.build())
.applications("string")
.releaseVersion("string")
.clusterName("string")
.clusterType("string")
.nodeGroups(ClusterNodeGroupArgs.builder()
.nodeCount(0)
.systemDisk(ClusterNodeGroupSystemDiskArgs.builder()
.category("string")
.size(0)
.count(0)
.performanceLevel("string")
.build())
.dataDisks(ClusterNodeGroupDataDiskArgs.builder()
.category("string")
.size(0)
.count(0)
.performanceLevel("string")
.build())
.nodeGroupType("string")
.nodeGroupName("string")
.instanceTypes("string")
.gracefulShutdown(false)
.additionalSecurityGroupIds("string")
.deploymentSetStrategy("string")
.nodeResizeStrategy("string")
.paymentType("string")
.spotBidPrices(ClusterNodeGroupSpotBidPriceArgs.builder()
.bidPrice(0)
.instanceType("string")
.build())
.spotInstanceRemedy(false)
.subscriptionConfig(ClusterNodeGroupSubscriptionConfigArgs.builder()
.paymentDuration(0)
.paymentDurationUnit("string")
.autoPayOrder(false)
.autoRenew(false)
.autoRenewDuration(0)
.autoRenewDurationUnit("string")
.build())
.costOptimizedConfig(ClusterNodeGroupCostOptimizedConfigArgs.builder()
.onDemandBaseCapacity(0)
.onDemandPercentageAboveBaseCapacity(0)
.spotInstancePools(0)
.build())
.vswitchIds("string")
.withPublicIp(false)
.build())
.logCollectStrategy("string")
.applicationConfigs(ClusterApplicationConfigArgs.builder()
.applicationName("string")
.configFileName("string")
.configItemKey("string")
.configItemValue("string")
.configDescription("string")
.configScope("string")
.nodeGroupId("string")
.nodeGroupName("string")
.build())
.deployMode("string")
.paymentType("string")
.bootstrapScripts(ClusterBootstrapScriptArgs.builder()
.executionFailStrategy("string")
.executionMoment("string")
.nodeSelector(ClusterBootstrapScriptNodeSelectorArgs.builder()
.nodeSelectType("string")
.nodeGroupId("string")
.nodeGroupName("string")
.nodeGroupTypes("string")
.nodeNames("string")
.build())
.scriptArgs("string")
.scriptName("string")
.scriptPath("string")
.priority(0)
.build())
.resourceGroupId("string")
.securityMode("string")
.subscriptionConfig(ClusterSubscriptionConfigArgs.builder()
.paymentDuration(0)
.paymentDurationUnit("string")
.autoPayOrder(false)
.autoRenew(false)
.autoRenewDuration(0)
.autoRenewDurationUnit("string")
.build())
.tags(Map.of("string", "any"))
.build());
examplecluster_resource_resource_from_emrv2cluster = alicloud.emrv2.Cluster("exampleclusterResourceResourceFromEmrv2cluster",
node_attributes=[alicloud.emrv2.ClusterNodeAttributeArgs(
key_pair_name="string",
ram_role="string",
security_group_id="string",
vpc_id="string",
zone_id="string",
data_disk_encrypted=False,
data_disk_kms_key_id="string",
)],
applications=["string"],
release_version="string",
cluster_name="string",
cluster_type="string",
node_groups=[alicloud.emrv2.ClusterNodeGroupArgs(
node_count=0,
system_disk=alicloud.emrv2.ClusterNodeGroupSystemDiskArgs(
category="string",
size=0,
count=0,
performance_level="string",
),
data_disks=[alicloud.emrv2.ClusterNodeGroupDataDiskArgs(
category="string",
size=0,
count=0,
performance_level="string",
)],
node_group_type="string",
node_group_name="string",
instance_types=["string"],
graceful_shutdown=False,
additional_security_group_ids=["string"],
deployment_set_strategy="string",
node_resize_strategy="string",
payment_type="string",
spot_bid_prices=[alicloud.emrv2.ClusterNodeGroupSpotBidPriceArgs(
bid_price=0,
instance_type="string",
)],
spot_instance_remedy=False,
subscription_config=alicloud.emrv2.ClusterNodeGroupSubscriptionConfigArgs(
payment_duration=0,
payment_duration_unit="string",
auto_pay_order=False,
auto_renew=False,
auto_renew_duration=0,
auto_renew_duration_unit="string",
),
cost_optimized_config=alicloud.emrv2.ClusterNodeGroupCostOptimizedConfigArgs(
on_demand_base_capacity=0,
on_demand_percentage_above_base_capacity=0,
spot_instance_pools=0,
),
vswitch_ids=["string"],
with_public_ip=False,
)],
log_collect_strategy="string",
application_configs=[alicloud.emrv2.ClusterApplicationConfigArgs(
application_name="string",
config_file_name="string",
config_item_key="string",
config_item_value="string",
config_description="string",
config_scope="string",
node_group_id="string",
node_group_name="string",
)],
deploy_mode="string",
payment_type="string",
bootstrap_scripts=[alicloud.emrv2.ClusterBootstrapScriptArgs(
execution_fail_strategy="string",
execution_moment="string",
node_selector=alicloud.emrv2.ClusterBootstrapScriptNodeSelectorArgs(
node_select_type="string",
node_group_id="string",
node_group_name="string",
node_group_types=["string"],
node_names=["string"],
),
script_args="string",
script_name="string",
script_path="string",
priority=0,
)],
resource_group_id="string",
security_mode="string",
subscription_config=alicloud.emrv2.ClusterSubscriptionConfigArgs(
payment_duration=0,
payment_duration_unit="string",
auto_pay_order=False,
auto_renew=False,
auto_renew_duration=0,
auto_renew_duration_unit="string",
),
tags={
"string": "any",
})
const exampleclusterResourceResourceFromEmrv2cluster = new alicloud.emrv2.Cluster("exampleclusterResourceResourceFromEmrv2cluster", {
nodeAttributes: [{
keyPairName: "string",
ramRole: "string",
securityGroupId: "string",
vpcId: "string",
zoneId: "string",
dataDiskEncrypted: false,
dataDiskKmsKeyId: "string",
}],
applications: ["string"],
releaseVersion: "string",
clusterName: "string",
clusterType: "string",
nodeGroups: [{
nodeCount: 0,
systemDisk: {
category: "string",
size: 0,
count: 0,
performanceLevel: "string",
},
dataDisks: [{
category: "string",
size: 0,
count: 0,
performanceLevel: "string",
}],
nodeGroupType: "string",
nodeGroupName: "string",
instanceTypes: ["string"],
gracefulShutdown: false,
additionalSecurityGroupIds: ["string"],
deploymentSetStrategy: "string",
nodeResizeStrategy: "string",
paymentType: "string",
spotBidPrices: [{
bidPrice: 0,
instanceType: "string",
}],
spotInstanceRemedy: false,
subscriptionConfig: {
paymentDuration: 0,
paymentDurationUnit: "string",
autoPayOrder: false,
autoRenew: false,
autoRenewDuration: 0,
autoRenewDurationUnit: "string",
},
costOptimizedConfig: {
onDemandBaseCapacity: 0,
onDemandPercentageAboveBaseCapacity: 0,
spotInstancePools: 0,
},
vswitchIds: ["string"],
withPublicIp: false,
}],
logCollectStrategy: "string",
applicationConfigs: [{
applicationName: "string",
configFileName: "string",
configItemKey: "string",
configItemValue: "string",
configDescription: "string",
configScope: "string",
nodeGroupId: "string",
nodeGroupName: "string",
}],
deployMode: "string",
paymentType: "string",
bootstrapScripts: [{
executionFailStrategy: "string",
executionMoment: "string",
nodeSelector: {
nodeSelectType: "string",
nodeGroupId: "string",
nodeGroupName: "string",
nodeGroupTypes: ["string"],
nodeNames: ["string"],
},
scriptArgs: "string",
scriptName: "string",
scriptPath: "string",
priority: 0,
}],
resourceGroupId: "string",
securityMode: "string",
subscriptionConfig: {
paymentDuration: 0,
paymentDurationUnit: "string",
autoPayOrder: false,
autoRenew: false,
autoRenewDuration: 0,
autoRenewDurationUnit: "string",
},
tags: {
string: "any",
},
});
type: alicloud:emrv2:Cluster
properties:
applicationConfigs:
- applicationName: string
configDescription: string
configFileName: string
configItemKey: string
configItemValue: string
configScope: string
nodeGroupId: string
nodeGroupName: string
applications:
- string
bootstrapScripts:
- executionFailStrategy: string
executionMoment: string
nodeSelector:
nodeGroupId: string
nodeGroupName: string
nodeGroupTypes:
- string
nodeNames:
- string
nodeSelectType: string
priority: 0
scriptArgs: string
scriptName: string
scriptPath: string
clusterName: string
clusterType: string
deployMode: string
logCollectStrategy: string
nodeAttributes:
- dataDiskEncrypted: false
dataDiskKmsKeyId: string
keyPairName: string
ramRole: string
securityGroupId: string
vpcId: string
zoneId: string
nodeGroups:
- additionalSecurityGroupIds:
- string
costOptimizedConfig:
onDemandBaseCapacity: 0
onDemandPercentageAboveBaseCapacity: 0
spotInstancePools: 0
dataDisks:
- category: string
count: 0
performanceLevel: string
size: 0
deploymentSetStrategy: string
gracefulShutdown: false
instanceTypes:
- string
nodeCount: 0
nodeGroupName: string
nodeGroupType: string
nodeResizeStrategy: string
paymentType: string
spotBidPrices:
- bidPrice: 0
instanceType: string
spotInstanceRemedy: false
subscriptionConfig:
autoPayOrder: false
autoRenew: false
autoRenewDuration: 0
autoRenewDurationUnit: string
paymentDuration: 0
paymentDurationUnit: string
systemDisk:
category: string
count: 0
performanceLevel: string
size: 0
vswitchIds:
- string
withPublicIp: false
paymentType: string
releaseVersion: string
resourceGroupId: string
securityMode: string
subscriptionConfig:
autoPayOrder: false
autoRenew: false
autoRenewDuration: 0
autoRenewDurationUnit: string
paymentDuration: 0
paymentDurationUnit: string
tags:
string: any
Cluster Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Cluster resource accepts the following input properties:
- Applications List<string>
- The applications of EMR cluster to be installed, e.g. HADOOP-COMMON, HDFS, YARN, HIVE, SPARK2, SPARK3, ZOOKEEPER etc. You can find all valid applications in emr web console.
- Cluster
Name string - The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
- Cluster
Type string - EMR Cluster Type, e.g. DATALAKE, OLAP, DATAFLOW, DATASERVING, CUSTOM etc. You can find all valid EMR cluster type in emr web console.
- Node
Attributes List<Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Node Attribute> - The node attributes of ecs instances which the emr-cluster belongs. See
node_attributes
below. - Node
Groups List<Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Node Group> - Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example). See
node_groups
below. - Release
Version string - EMR Version, e.g. EMR-5.10.0. You can find the all valid EMR Version in emr web console.
- Application
Configs List<Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Application Config> - The application configurations of EMR cluster. See
application_configs
below. - Bootstrap
Scripts List<Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Bootstrap Script> - The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster, if priority is not specified, the scripts will execute in the declared order. See
bootstrap_scripts
below. - Deploy
Mode string - The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- Log
Collect stringStrategy - The log collect strategy of EMR cluster.
- Payment
Type string - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription.
- Resource
Group stringId - The Id of resource group which the emr-cluster belongs.
- Security
Mode string - The security mode of EMR cluster. Supported value: NORMAL or KERBEROS.
- Subscription
Config Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Subscription Config - The detail configuration of subscription payment type. See
subscription_config
below. - Dictionary<string, object>
- A mapping of tags to assign to the resource.
- Applications []string
- The applications of EMR cluster to be installed, e.g. HADOOP-COMMON, HDFS, YARN, HIVE, SPARK2, SPARK3, ZOOKEEPER etc. You can find all valid applications in emr web console.
- Cluster
Name string - The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
- Cluster
Type string - EMR Cluster Type, e.g. DATALAKE, OLAP, DATAFLOW, DATASERVING, CUSTOM etc. You can find all valid EMR cluster type in emr web console.
- Node
Attributes []ClusterNode Attribute Args - The node attributes of ecs instances which the emr-cluster belongs. See
node_attributes
below. - Node
Groups []ClusterNode Group Args - Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example). See
node_groups
below. - Release
Version string - EMR Version, e.g. EMR-5.10.0. You can find the all valid EMR Version in emr web console.
- Application
Configs []ClusterApplication Config Args - The application configurations of EMR cluster. See
application_configs
below. - Bootstrap
Scripts []ClusterBootstrap Script Args - The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster, if priority is not specified, the scripts will execute in the declared order. See
bootstrap_scripts
below. - Deploy
Mode string - The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- Log
Collect stringStrategy - The log collect strategy of EMR cluster.
- Payment
Type string - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription.
- Resource
Group stringId - The Id of resource group which the emr-cluster belongs.
- Security
Mode string - The security mode of EMR cluster. Supported value: NORMAL or KERBEROS.
- Subscription
Config ClusterSubscription Config Args - The detail configuration of subscription payment type. See
subscription_config
below. - map[string]interface{}
- A mapping of tags to assign to the resource.
- applications List<String>
- The applications of EMR cluster to be installed, e.g. HADOOP-COMMON, HDFS, YARN, HIVE, SPARK2, SPARK3, ZOOKEEPER etc. You can find all valid applications in emr web console.
- cluster
Name String - The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
- cluster
Type String - EMR Cluster Type, e.g. DATALAKE, OLAP, DATAFLOW, DATASERVING, CUSTOM etc. You can find all valid EMR cluster type in emr web console.
- node
Attributes List<ClusterNode Attribute> - The node attributes of ecs instances which the emr-cluster belongs. See
node_attributes
below. - node
Groups List<ClusterNode Group> - Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example). See
node_groups
below. - release
Version String - EMR Version, e.g. EMR-5.10.0. You can find the all valid EMR Version in emr web console.
- application
Configs List<ClusterApplication Config> - The application configurations of EMR cluster. See
application_configs
below. - bootstrap
Scripts List<ClusterBootstrap Script> - The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster, if priority is not specified, the scripts will execute in the declared order. See
bootstrap_scripts
below. - deploy
Mode String - The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- log
Collect StringStrategy - The log collect strategy of EMR cluster.
- payment
Type String - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription.
- resource
Group StringId - The Id of resource group which the emr-cluster belongs.
- security
Mode String - The security mode of EMR cluster. Supported value: NORMAL or KERBEROS.
- subscription
Config ClusterSubscription Config - The detail configuration of subscription payment type. See
subscription_config
below. - Map<String,Object>
- A mapping of tags to assign to the resource.
- applications string[]
- The applications of EMR cluster to be installed, e.g. HADOOP-COMMON, HDFS, YARN, HIVE, SPARK2, SPARK3, ZOOKEEPER etc. You can find all valid applications in emr web console.
- cluster
Name string - The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
- cluster
Type string - EMR Cluster Type, e.g. DATALAKE, OLAP, DATAFLOW, DATASERVING, CUSTOM etc. You can find all valid EMR cluster type in emr web console.
- node
Attributes ClusterNode Attribute[] - The node attributes of ecs instances which the emr-cluster belongs. See
node_attributes
below. - node
Groups ClusterNode Group[] - Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example). See
node_groups
below. - release
Version string - EMR Version, e.g. EMR-5.10.0. You can find the all valid EMR Version in emr web console.
- application
Configs ClusterApplication Config[] - The application configurations of EMR cluster. See
application_configs
below. - bootstrap
Scripts ClusterBootstrap Script[] - The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster, if priority is not specified, the scripts will execute in the declared order. See
bootstrap_scripts
below. - deploy
Mode string - The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- log
Collect stringStrategy - The log collect strategy of EMR cluster.
- payment
Type string - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription.
- resource
Group stringId - The Id of resource group which the emr-cluster belongs.
- security
Mode string - The security mode of EMR cluster. Supported value: NORMAL or KERBEROS.
- subscription
Config ClusterSubscription Config - The detail configuration of subscription payment type. See
subscription_config
below. - {[key: string]: any}
- A mapping of tags to assign to the resource.
- applications Sequence[str]
- The applications of EMR cluster to be installed, e.g. HADOOP-COMMON, HDFS, YARN, HIVE, SPARK2, SPARK3, ZOOKEEPER etc. You can find all valid applications in emr web console.
- cluster_
name str - The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
- cluster_
type str - EMR Cluster Type, e.g. DATALAKE, OLAP, DATAFLOW, DATASERVING, CUSTOM etc. You can find all valid EMR cluster type in emr web console.
- node_
attributes Sequence[ClusterNode Attribute Args] - The node attributes of ecs instances which the emr-cluster belongs. See
node_attributes
below. - node_
groups Sequence[ClusterNode Group Args] - Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example). See
node_groups
below. - release_
version str - EMR Version, e.g. EMR-5.10.0. You can find the all valid EMR Version in emr web console.
- application_
configs Sequence[ClusterApplication Config Args] - The application configurations of EMR cluster. See
application_configs
below. - bootstrap_
scripts Sequence[ClusterBootstrap Script Args] - The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster, if priority is not specified, the scripts will execute in the declared order. See
bootstrap_scripts
below. - deploy_
mode str - The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- log_
collect_ strstrategy - The log collect strategy of EMR cluster.
- payment_
type str - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription.
- resource_
group_ strid - The Id of resource group which the emr-cluster belongs.
- security_
mode str - The security mode of EMR cluster. Supported value: NORMAL or KERBEROS.
- subscription_
config ClusterSubscription Config Args - The detail configuration of subscription payment type. See
subscription_config
below. - Mapping[str, Any]
- A mapping of tags to assign to the resource.
- applications List<String>
- The applications of EMR cluster to be installed, e.g. HADOOP-COMMON, HDFS, YARN, HIVE, SPARK2, SPARK3, ZOOKEEPER etc. You can find all valid applications in emr web console.
- cluster
Name String - The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
- cluster
Type String - EMR Cluster Type, e.g. DATALAKE, OLAP, DATAFLOW, DATASERVING, CUSTOM etc. You can find all valid EMR cluster type in emr web console.
- node
Attributes List<Property Map> - The node attributes of ecs instances which the emr-cluster belongs. See
node_attributes
below. - node
Groups List<Property Map> - Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example). See
node_groups
below. - release
Version String - EMR Version, e.g. EMR-5.10.0. You can find the all valid EMR Version in emr web console.
- application
Configs List<Property Map> - The application configurations of EMR cluster. See
application_configs
below. - bootstrap
Scripts List<Property Map> - The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster, if priority is not specified, the scripts will execute in the declared order. See
bootstrap_scripts
below. - deploy
Mode String - The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- log
Collect StringStrategy - The log collect strategy of EMR cluster.
- payment
Type String - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription.
- resource
Group StringId - The Id of resource group which the emr-cluster belongs.
- security
Mode String - The security mode of EMR cluster. Supported value: NORMAL or KERBEROS.
- subscription
Config Property Map - The detail configuration of subscription payment type. See
subscription_config
below. - Map<Any>
- A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Cluster resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Cluster Resource
Get an existing Cluster 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?: ClusterState, opts?: CustomResourceOptions): Cluster
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
application_configs: Optional[Sequence[ClusterApplicationConfigArgs]] = None,
applications: Optional[Sequence[str]] = None,
bootstrap_scripts: Optional[Sequence[ClusterBootstrapScriptArgs]] = None,
cluster_name: Optional[str] = None,
cluster_type: Optional[str] = None,
deploy_mode: Optional[str] = None,
log_collect_strategy: Optional[str] = None,
node_attributes: Optional[Sequence[ClusterNodeAttributeArgs]] = None,
node_groups: Optional[Sequence[ClusterNodeGroupArgs]] = None,
payment_type: Optional[str] = None,
release_version: Optional[str] = None,
resource_group_id: Optional[str] = None,
security_mode: Optional[str] = None,
subscription_config: Optional[ClusterSubscriptionConfigArgs] = None,
tags: Optional[Mapping[str, Any]] = None) -> Cluster
func GetCluster(ctx *Context, name string, id IDInput, state *ClusterState, opts ...ResourceOption) (*Cluster, error)
public static Cluster Get(string name, Input<string> id, ClusterState? state, CustomResourceOptions? opts = null)
public static Cluster get(String name, Output<String> id, ClusterState 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.
- Application
Configs List<Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Application Config> - The application configurations of EMR cluster. See
application_configs
below. - Applications List<string>
- The applications of EMR cluster to be installed, e.g. HADOOP-COMMON, HDFS, YARN, HIVE, SPARK2, SPARK3, ZOOKEEPER etc. You can find all valid applications in emr web console.
- Bootstrap
Scripts List<Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Bootstrap Script> - The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster, if priority is not specified, the scripts will execute in the declared order. See
bootstrap_scripts
below. - Cluster
Name string - The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
- Cluster
Type string - EMR Cluster Type, e.g. DATALAKE, OLAP, DATAFLOW, DATASERVING, CUSTOM etc. You can find all valid EMR cluster type in emr web console.
- Deploy
Mode string - The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- Log
Collect stringStrategy - The log collect strategy of EMR cluster.
- Node
Attributes List<Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Node Attribute> - The node attributes of ecs instances which the emr-cluster belongs. See
node_attributes
below. - Node
Groups List<Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Node Group> - Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example). See
node_groups
below. - Payment
Type string - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription.
- Release
Version string - EMR Version, e.g. EMR-5.10.0. You can find the all valid EMR Version in emr web console.
- Resource
Group stringId - The Id of resource group which the emr-cluster belongs.
- Security
Mode string - The security mode of EMR cluster. Supported value: NORMAL or KERBEROS.
- Subscription
Config Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Subscription Config - The detail configuration of subscription payment type. See
subscription_config
below. - Dictionary<string, object>
- A mapping of tags to assign to the resource.
- Application
Configs []ClusterApplication Config Args - The application configurations of EMR cluster. See
application_configs
below. - Applications []string
- The applications of EMR cluster to be installed, e.g. HADOOP-COMMON, HDFS, YARN, HIVE, SPARK2, SPARK3, ZOOKEEPER etc. You can find all valid applications in emr web console.
- Bootstrap
Scripts []ClusterBootstrap Script Args - The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster, if priority is not specified, the scripts will execute in the declared order. See
bootstrap_scripts
below. - Cluster
Name string - The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
- Cluster
Type string - EMR Cluster Type, e.g. DATALAKE, OLAP, DATAFLOW, DATASERVING, CUSTOM etc. You can find all valid EMR cluster type in emr web console.
- Deploy
Mode string - The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- Log
Collect stringStrategy - The log collect strategy of EMR cluster.
- Node
Attributes []ClusterNode Attribute Args - The node attributes of ecs instances which the emr-cluster belongs. See
node_attributes
below. - Node
Groups []ClusterNode Group Args - Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example). See
node_groups
below. - Payment
Type string - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription.
- Release
Version string - EMR Version, e.g. EMR-5.10.0. You can find the all valid EMR Version in emr web console.
- Resource
Group stringId - The Id of resource group which the emr-cluster belongs.
- Security
Mode string - The security mode of EMR cluster. Supported value: NORMAL or KERBEROS.
- Subscription
Config ClusterSubscription Config Args - The detail configuration of subscription payment type. See
subscription_config
below. - map[string]interface{}
- A mapping of tags to assign to the resource.
- application
Configs List<ClusterApplication Config> - The application configurations of EMR cluster. See
application_configs
below. - applications List<String>
- The applications of EMR cluster to be installed, e.g. HADOOP-COMMON, HDFS, YARN, HIVE, SPARK2, SPARK3, ZOOKEEPER etc. You can find all valid applications in emr web console.
- bootstrap
Scripts List<ClusterBootstrap Script> - The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster, if priority is not specified, the scripts will execute in the declared order. See
bootstrap_scripts
below. - cluster
Name String - The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
- cluster
Type String - EMR Cluster Type, e.g. DATALAKE, OLAP, DATAFLOW, DATASERVING, CUSTOM etc. You can find all valid EMR cluster type in emr web console.
- deploy
Mode String - The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- log
Collect StringStrategy - The log collect strategy of EMR cluster.
- node
Attributes List<ClusterNode Attribute> - The node attributes of ecs instances which the emr-cluster belongs. See
node_attributes
below. - node
Groups List<ClusterNode Group> - Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example). See
node_groups
below. - payment
Type String - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription.
- release
Version String - EMR Version, e.g. EMR-5.10.0. You can find the all valid EMR Version in emr web console.
- resource
Group StringId - The Id of resource group which the emr-cluster belongs.
- security
Mode String - The security mode of EMR cluster. Supported value: NORMAL or KERBEROS.
- subscription
Config ClusterSubscription Config - The detail configuration of subscription payment type. See
subscription_config
below. - Map<String,Object>
- A mapping of tags to assign to the resource.
- application
Configs ClusterApplication Config[] - The application configurations of EMR cluster. See
application_configs
below. - applications string[]
- The applications of EMR cluster to be installed, e.g. HADOOP-COMMON, HDFS, YARN, HIVE, SPARK2, SPARK3, ZOOKEEPER etc. You can find all valid applications in emr web console.
- bootstrap
Scripts ClusterBootstrap Script[] - The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster, if priority is not specified, the scripts will execute in the declared order. See
bootstrap_scripts
below. - cluster
Name string - The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
- cluster
Type string - EMR Cluster Type, e.g. DATALAKE, OLAP, DATAFLOW, DATASERVING, CUSTOM etc. You can find all valid EMR cluster type in emr web console.
- deploy
Mode string - The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- log
Collect stringStrategy - The log collect strategy of EMR cluster.
- node
Attributes ClusterNode Attribute[] - The node attributes of ecs instances which the emr-cluster belongs. See
node_attributes
below. - node
Groups ClusterNode Group[] - Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example). See
node_groups
below. - payment
Type string - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription.
- release
Version string - EMR Version, e.g. EMR-5.10.0. You can find the all valid EMR Version in emr web console.
- resource
Group stringId - The Id of resource group which the emr-cluster belongs.
- security
Mode string - The security mode of EMR cluster. Supported value: NORMAL or KERBEROS.
- subscription
Config ClusterSubscription Config - The detail configuration of subscription payment type. See
subscription_config
below. - {[key: string]: any}
- A mapping of tags to assign to the resource.
- application_
configs Sequence[ClusterApplication Config Args] - The application configurations of EMR cluster. See
application_configs
below. - applications Sequence[str]
- The applications of EMR cluster to be installed, e.g. HADOOP-COMMON, HDFS, YARN, HIVE, SPARK2, SPARK3, ZOOKEEPER etc. You can find all valid applications in emr web console.
- bootstrap_
scripts Sequence[ClusterBootstrap Script Args] - The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster, if priority is not specified, the scripts will execute in the declared order. See
bootstrap_scripts
below. - cluster_
name str - The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
- cluster_
type str - EMR Cluster Type, e.g. DATALAKE, OLAP, DATAFLOW, DATASERVING, CUSTOM etc. You can find all valid EMR cluster type in emr web console.
- deploy_
mode str - The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- log_
collect_ strstrategy - The log collect strategy of EMR cluster.
- node_
attributes Sequence[ClusterNode Attribute Args] - The node attributes of ecs instances which the emr-cluster belongs. See
node_attributes
below. - node_
groups Sequence[ClusterNode Group Args] - Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example). See
node_groups
below. - payment_
type str - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription.
- release_
version str - EMR Version, e.g. EMR-5.10.0. You can find the all valid EMR Version in emr web console.
- resource_
group_ strid - The Id of resource group which the emr-cluster belongs.
- security_
mode str - The security mode of EMR cluster. Supported value: NORMAL or KERBEROS.
- subscription_
config ClusterSubscription Config Args - The detail configuration of subscription payment type. See
subscription_config
below. - Mapping[str, Any]
- A mapping of tags to assign to the resource.
- application
Configs List<Property Map> - The application configurations of EMR cluster. See
application_configs
below. - applications List<String>
- The applications of EMR cluster to be installed, e.g. HADOOP-COMMON, HDFS, YARN, HIVE, SPARK2, SPARK3, ZOOKEEPER etc. You can find all valid applications in emr web console.
- bootstrap
Scripts List<Property Map> - The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster, if priority is not specified, the scripts will execute in the declared order. See
bootstrap_scripts
below. - cluster
Name String - The name of emr cluster. The name length must be less than 64. Supported characters: chinese character, english character, number, "-", "_".
- cluster
Type String - EMR Cluster Type, e.g. DATALAKE, OLAP, DATAFLOW, DATASERVING, CUSTOM etc. You can find all valid EMR cluster type in emr web console.
- deploy
Mode String - The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- log
Collect StringStrategy - The log collect strategy of EMR cluster.
- node
Attributes List<Property Map> - The node attributes of ecs instances which the emr-cluster belongs. See
node_attributes
below. - node
Groups List<Property Map> - Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example). See
node_groups
below. - payment
Type String - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription.
- release
Version String - EMR Version, e.g. EMR-5.10.0. You can find the all valid EMR Version in emr web console.
- resource
Group StringId - The Id of resource group which the emr-cluster belongs.
- security
Mode String - The security mode of EMR cluster. Supported value: NORMAL or KERBEROS.
- subscription
Config Property Map - The detail configuration of subscription payment type. See
subscription_config
below. - Map<Any>
- A mapping of tags to assign to the resource.
Supporting Types
ClusterApplicationConfig, ClusterApplicationConfigArgs
- Application
Name string - The application name of EMR cluster which has installed.
- Config
File stringName - The configuration file name of application installed.
- Config
Item stringKey - The configuration item key of application installed.
- Config
Item stringValue - The configuration item value of application installed.
- Config
Description string - The configuration description of application installed.
- Config
Scope string - The configuration scope of emr cluster. Supported value: CLUSTER or NODEGROUP.
- Node
Group stringId - The configuration effected which node group id of emr cluster.
- Node
Group stringName - The configuration effected which node group name of emr cluster.
- Application
Name string - The application name of EMR cluster which has installed.
- Config
File stringName - The configuration file name of application installed.
- Config
Item stringKey - The configuration item key of application installed.
- Config
Item stringValue - The configuration item value of application installed.
- Config
Description string - The configuration description of application installed.
- Config
Scope string - The configuration scope of emr cluster. Supported value: CLUSTER or NODEGROUP.
- Node
Group stringId - The configuration effected which node group id of emr cluster.
- Node
Group stringName - The configuration effected which node group name of emr cluster.
- application
Name String - The application name of EMR cluster which has installed.
- config
File StringName - The configuration file name of application installed.
- config
Item StringKey - The configuration item key of application installed.
- config
Item StringValue - The configuration item value of application installed.
- config
Description String - The configuration description of application installed.
- config
Scope String - The configuration scope of emr cluster. Supported value: CLUSTER or NODEGROUP.
- node
Group StringId - The configuration effected which node group id of emr cluster.
- node
Group StringName - The configuration effected which node group name of emr cluster.
- application
Name string - The application name of EMR cluster which has installed.
- config
File stringName - The configuration file name of application installed.
- config
Item stringKey - The configuration item key of application installed.
- config
Item stringValue - The configuration item value of application installed.
- config
Description string - The configuration description of application installed.
- config
Scope string - The configuration scope of emr cluster. Supported value: CLUSTER or NODEGROUP.
- node
Group stringId - The configuration effected which node group id of emr cluster.
- node
Group stringName - The configuration effected which node group name of emr cluster.
- application_
name str - The application name of EMR cluster which has installed.
- config_
file_ strname - The configuration file name of application installed.
- config_
item_ strkey - The configuration item key of application installed.
- config_
item_ strvalue - The configuration item value of application installed.
- config_
description str - The configuration description of application installed.
- config_
scope str - The configuration scope of emr cluster. Supported value: CLUSTER or NODEGROUP.
- node_
group_ strid - The configuration effected which node group id of emr cluster.
- node_
group_ strname - The configuration effected which node group name of emr cluster.
- application
Name String - The application name of EMR cluster which has installed.
- config
File StringName - The configuration file name of application installed.
- config
Item StringKey - The configuration item key of application installed.
- config
Item StringValue - The configuration item value of application installed.
- config
Description String - The configuration description of application installed.
- config
Scope String - The configuration scope of emr cluster. Supported value: CLUSTER or NODEGROUP.
- node
Group StringId - The configuration effected which node group id of emr cluster.
- node
Group StringName - The configuration effected which node group name of emr cluster.
ClusterBootstrapScript, ClusterBootstrapScriptArgs
- Execution
Fail stringStrategy - The bootstrap scripts execution fail strategy, ’FAILED_BLOCKED’ or ‘FAILED_CONTINUE’ .
- Execution
Moment string - The bootstrap scripts execution moment, ’BEFORE_INSTALL’ or ‘AFTER_STARTED’ .
- Node
Selector Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Bootstrap Script Node Selector - The bootstrap scripts execution target. See
node_selector
below. - Script
Args string - The bootstrap script args, e.g. "--a=b".
- Script
Name string - The bootstrap script name.
- Script
Path string - The bootstrap script path, e.g. "oss://bucket/path".
- Priority int
- The bootstrap scripts priority.
- Execution
Fail stringStrategy - The bootstrap scripts execution fail strategy, ’FAILED_BLOCKED’ or ‘FAILED_CONTINUE’ .
- Execution
Moment string - The bootstrap scripts execution moment, ’BEFORE_INSTALL’ or ‘AFTER_STARTED’ .
- Node
Selector ClusterBootstrap Script Node Selector - The bootstrap scripts execution target. See
node_selector
below. - Script
Args string - The bootstrap script args, e.g. "--a=b".
- Script
Name string - The bootstrap script name.
- Script
Path string - The bootstrap script path, e.g. "oss://bucket/path".
- Priority int
- The bootstrap scripts priority.
- execution
Fail StringStrategy - The bootstrap scripts execution fail strategy, ’FAILED_BLOCKED’ or ‘FAILED_CONTINUE’ .
- execution
Moment String - The bootstrap scripts execution moment, ’BEFORE_INSTALL’ or ‘AFTER_STARTED’ .
- node
Selector ClusterBootstrap Script Node Selector - The bootstrap scripts execution target. See
node_selector
below. - script
Args String - The bootstrap script args, e.g. "--a=b".
- script
Name String - The bootstrap script name.
- script
Path String - The bootstrap script path, e.g. "oss://bucket/path".
- priority Integer
- The bootstrap scripts priority.
- execution
Fail stringStrategy - The bootstrap scripts execution fail strategy, ’FAILED_BLOCKED’ or ‘FAILED_CONTINUE’ .
- execution
Moment string - The bootstrap scripts execution moment, ’BEFORE_INSTALL’ or ‘AFTER_STARTED’ .
- node
Selector ClusterBootstrap Script Node Selector - The bootstrap scripts execution target. See
node_selector
below. - script
Args string - The bootstrap script args, e.g. "--a=b".
- script
Name string - The bootstrap script name.
- script
Path string - The bootstrap script path, e.g. "oss://bucket/path".
- priority number
- The bootstrap scripts priority.
- execution_
fail_ strstrategy - The bootstrap scripts execution fail strategy, ’FAILED_BLOCKED’ or ‘FAILED_CONTINUE’ .
- execution_
moment str - The bootstrap scripts execution moment, ’BEFORE_INSTALL’ or ‘AFTER_STARTED’ .
- node_
selector ClusterBootstrap Script Node Selector - The bootstrap scripts execution target. See
node_selector
below. - script_
args str - The bootstrap script args, e.g. "--a=b".
- script_
name str - The bootstrap script name.
- script_
path str - The bootstrap script path, e.g. "oss://bucket/path".
- priority int
- The bootstrap scripts priority.
- execution
Fail StringStrategy - The bootstrap scripts execution fail strategy, ’FAILED_BLOCKED’ or ‘FAILED_CONTINUE’ .
- execution
Moment String - The bootstrap scripts execution moment, ’BEFORE_INSTALL’ or ‘AFTER_STARTED’ .
- node
Selector Property Map - The bootstrap scripts execution target. See
node_selector
below. - script
Args String - The bootstrap script args, e.g. "--a=b".
- script
Name String - The bootstrap script name.
- script
Path String - The bootstrap script path, e.g. "oss://bucket/path".
- priority Number
- The bootstrap scripts priority.
ClusterBootstrapScriptNodeSelector, ClusterBootstrapScriptNodeSelectorArgs
- Node
Select stringType - Node
Group stringId - Node
Group stringName - Node
Group List<string>Types - Node
Names List<string>
- Node
Select stringType - Node
Group stringId - Node
Group stringName - Node
Group []stringTypes - Node
Names []string
- node
Select StringType - node
Group StringId - node
Group StringName - node
Group List<String>Types - node
Names List<String>
- node
Select stringType - node
Group stringId - node
Group stringName - node
Group string[]Types - node
Names string[]
- node_
select_ strtype - node_
group_ strid - node_
group_ strname - node_
group_ Sequence[str]types - node_
names Sequence[str]
- node
Select StringType - node
Group StringId - node
Group StringName - node
Group List<String>Types - node
Names List<String>
ClusterNodeAttribute, ClusterNodeAttributeArgs
- Key
Pair stringName - The name of the key pair.
- Ram
Role string - Alicloud EMR uses roles to perform actions on your behalf when provisioning cluster resources, running applications, dynamically scaling resources. EMR uses the following roles when interacting with other Alicloud services. Default value is AliyunEmrEcsDefaultRole.
- Security
Group stringId - Security Group ID for Cluster.
- Vpc
Id string - Used to retrieve instances belong to specified VPC.
- Zone
Id string - Zone ID, e.g. cn-hangzhou-i
- Data
Disk boolEncrypted - Whether to enable data disk encryption.
- Data
Disk stringKms Key Id - The kms key id used to encrypt the data disk. It takes effect when data_disk_encrypted is true.
- Key
Pair stringName - The name of the key pair.
- Ram
Role string - Alicloud EMR uses roles to perform actions on your behalf when provisioning cluster resources, running applications, dynamically scaling resources. EMR uses the following roles when interacting with other Alicloud services. Default value is AliyunEmrEcsDefaultRole.
- Security
Group stringId - Security Group ID for Cluster.
- Vpc
Id string - Used to retrieve instances belong to specified VPC.
- Zone
Id string - Zone ID, e.g. cn-hangzhou-i
- Data
Disk boolEncrypted - Whether to enable data disk encryption.
- Data
Disk stringKms Key Id - The kms key id used to encrypt the data disk. It takes effect when data_disk_encrypted is true.
- key
Pair StringName - The name of the key pair.
- ram
Role String - Alicloud EMR uses roles to perform actions on your behalf when provisioning cluster resources, running applications, dynamically scaling resources. EMR uses the following roles when interacting with other Alicloud services. Default value is AliyunEmrEcsDefaultRole.
- security
Group StringId - Security Group ID for Cluster.
- vpc
Id String - Used to retrieve instances belong to specified VPC.
- zone
Id String - Zone ID, e.g. cn-hangzhou-i
- data
Disk BooleanEncrypted - Whether to enable data disk encryption.
- data
Disk StringKms Key Id - The kms key id used to encrypt the data disk. It takes effect when data_disk_encrypted is true.
- key
Pair stringName - The name of the key pair.
- ram
Role string - Alicloud EMR uses roles to perform actions on your behalf when provisioning cluster resources, running applications, dynamically scaling resources. EMR uses the following roles when interacting with other Alicloud services. Default value is AliyunEmrEcsDefaultRole.
- security
Group stringId - Security Group ID for Cluster.
- vpc
Id string - Used to retrieve instances belong to specified VPC.
- zone
Id string - Zone ID, e.g. cn-hangzhou-i
- data
Disk booleanEncrypted - Whether to enable data disk encryption.
- data
Disk stringKms Key Id - The kms key id used to encrypt the data disk. It takes effect when data_disk_encrypted is true.
- key_
pair_ strname - The name of the key pair.
- ram_
role str - Alicloud EMR uses roles to perform actions on your behalf when provisioning cluster resources, running applications, dynamically scaling resources. EMR uses the following roles when interacting with other Alicloud services. Default value is AliyunEmrEcsDefaultRole.
- security_
group_ strid - Security Group ID for Cluster.
- vpc_
id str - Used to retrieve instances belong to specified VPC.
- zone_
id str - Zone ID, e.g. cn-hangzhou-i
- data_
disk_ boolencrypted - Whether to enable data disk encryption.
- data_
disk_ strkms_ key_ id - The kms key id used to encrypt the data disk. It takes effect when data_disk_encrypted is true.
- key
Pair StringName - The name of the key pair.
- ram
Role String - Alicloud EMR uses roles to perform actions on your behalf when provisioning cluster resources, running applications, dynamically scaling resources. EMR uses the following roles when interacting with other Alicloud services. Default value is AliyunEmrEcsDefaultRole.
- security
Group StringId - Security Group ID for Cluster.
- vpc
Id String - Used to retrieve instances belong to specified VPC.
- zone
Id String - Zone ID, e.g. cn-hangzhou-i
- data
Disk BooleanEncrypted - Whether to enable data disk encryption.
- data
Disk StringKms Key Id - The kms key id used to encrypt the data disk. It takes effect when data_disk_encrypted is true.
ClusterNodeGroup, ClusterNodeGroupArgs
- Data
Disks List<Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Node Group Data Disk> - Host Ecs data disks information in this node group. See
data_disks
below. - Instance
Types List<string> - Host Ecs instance types.
- Node
Count int - Host Ecs number in this node group.
- Node
Group stringName - The node group name of emr cluster.
- Node
Group stringType - The node group type of emr cluster, supported value: MASTER, CORE or TASK. Node group type of GATEWAY is available since v1.219.0.
- System
Disk Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Node Group System Disk - Host Ecs system disk information in this node group. See
system_disk
below. - Additional
Security List<string>Group Ids - Additional security Group IDS for Cluster, you can also specify this key for each node group.
- Cost
Optimized Pulumi.Config Ali Cloud. Emrv2. Inputs. Cluster Node Group Cost Optimized Config - The detail cost optimized configuration of emr cluster. See
cost_optimized_config
below. - Deployment
Set stringStrategy - Deployment set strategy for this cluster node group. Supported value: NONE, CLUSTER or NODE_GROUP.
- Graceful
Shutdown bool - Enable emr cluster of task node graceful decommission, ’true’ or ‘false’ .
- Node
Resize stringStrategy - Node resize strategy for this cluster node group. Supported value: PRIORITY, COST_OPTIMIZED.
- Payment
Type string - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription.
- Spot
Bid List<Pulumi.Prices Ali Cloud. Emrv2. Inputs. Cluster Node Group Spot Bid Price> - The spot bid prices of a PayAsYouGo instance. See
spot_bid_prices
below. - Spot
Instance boolRemedy - Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
- Subscription
Config Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Node Group Subscription Config - The detail configuration of subscription payment type. See
subscription_config
below. - Vswitch
Ids List<string> - Global vSwitch ids, you can also specify it in node group.
- With
Public boolIp - Whether the node has a public IP address enabled.
- Data
Disks []ClusterNode Group Data Disk - Host Ecs data disks information in this node group. See
data_disks
below. - Instance
Types []string - Host Ecs instance types.
- Node
Count int - Host Ecs number in this node group.
- Node
Group stringName - The node group name of emr cluster.
- Node
Group stringType - The node group type of emr cluster, supported value: MASTER, CORE or TASK. Node group type of GATEWAY is available since v1.219.0.
- System
Disk ClusterNode Group System Disk - Host Ecs system disk information in this node group. See
system_disk
below. - Additional
Security []stringGroup Ids - Additional security Group IDS for Cluster, you can also specify this key for each node group.
- Cost
Optimized ClusterConfig Node Group Cost Optimized Config - The detail cost optimized configuration of emr cluster. See
cost_optimized_config
below. - Deployment
Set stringStrategy - Deployment set strategy for this cluster node group. Supported value: NONE, CLUSTER or NODE_GROUP.
- Graceful
Shutdown bool - Enable emr cluster of task node graceful decommission, ’true’ or ‘false’ .
- Node
Resize stringStrategy - Node resize strategy for this cluster node group. Supported value: PRIORITY, COST_OPTIMIZED.
- Payment
Type string - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription.
- Spot
Bid []ClusterPrices Node Group Spot Bid Price - The spot bid prices of a PayAsYouGo instance. See
spot_bid_prices
below. - Spot
Instance boolRemedy - Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
- Subscription
Config ClusterNode Group Subscription Config - The detail configuration of subscription payment type. See
subscription_config
below. - Vswitch
Ids []string - Global vSwitch ids, you can also specify it in node group.
- With
Public boolIp - Whether the node has a public IP address enabled.
- data
Disks List<ClusterNode Group Data Disk> - Host Ecs data disks information in this node group. See
data_disks
below. - instance
Types List<String> - Host Ecs instance types.
- node
Count Integer - Host Ecs number in this node group.
- node
Group StringName - The node group name of emr cluster.
- node
Group StringType - The node group type of emr cluster, supported value: MASTER, CORE or TASK. Node group type of GATEWAY is available since v1.219.0.
- system
Disk ClusterNode Group System Disk - Host Ecs system disk information in this node group. See
system_disk
below. - additional
Security List<String>Group Ids - Additional security Group IDS for Cluster, you can also specify this key for each node group.
- cost
Optimized ClusterConfig Node Group Cost Optimized Config - The detail cost optimized configuration of emr cluster. See
cost_optimized_config
below. - deployment
Set StringStrategy - Deployment set strategy for this cluster node group. Supported value: NONE, CLUSTER or NODE_GROUP.
- graceful
Shutdown Boolean - Enable emr cluster of task node graceful decommission, ’true’ or ‘false’ .
- node
Resize StringStrategy - Node resize strategy for this cluster node group. Supported value: PRIORITY, COST_OPTIMIZED.
- payment
Type String - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription.
- spot
Bid List<ClusterPrices Node Group Spot Bid Price> - The spot bid prices of a PayAsYouGo instance. See
spot_bid_prices
below. - spot
Instance BooleanRemedy - Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
- subscription
Config ClusterNode Group Subscription Config - The detail configuration of subscription payment type. See
subscription_config
below. - vswitch
Ids List<String> - Global vSwitch ids, you can also specify it in node group.
- with
Public BooleanIp - Whether the node has a public IP address enabled.
- data
Disks ClusterNode Group Data Disk[] - Host Ecs data disks information in this node group. See
data_disks
below. - instance
Types string[] - Host Ecs instance types.
- node
Count number - Host Ecs number in this node group.
- node
Group stringName - The node group name of emr cluster.
- node
Group stringType - The node group type of emr cluster, supported value: MASTER, CORE or TASK. Node group type of GATEWAY is available since v1.219.0.
- system
Disk ClusterNode Group System Disk - Host Ecs system disk information in this node group. See
system_disk
below. - additional
Security string[]Group Ids - Additional security Group IDS for Cluster, you can also specify this key for each node group.
- cost
Optimized ClusterConfig Node Group Cost Optimized Config - The detail cost optimized configuration of emr cluster. See
cost_optimized_config
below. - deployment
Set stringStrategy - Deployment set strategy for this cluster node group. Supported value: NONE, CLUSTER or NODE_GROUP.
- graceful
Shutdown boolean - Enable emr cluster of task node graceful decommission, ’true’ or ‘false’ .
- node
Resize stringStrategy - Node resize strategy for this cluster node group. Supported value: PRIORITY, COST_OPTIMIZED.
- payment
Type string - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription.
- spot
Bid ClusterPrices Node Group Spot Bid Price[] - The spot bid prices of a PayAsYouGo instance. See
spot_bid_prices
below. - spot
Instance booleanRemedy - Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
- subscription
Config ClusterNode Group Subscription Config - The detail configuration of subscription payment type. See
subscription_config
below. - vswitch
Ids string[] - Global vSwitch ids, you can also specify it in node group.
- with
Public booleanIp - Whether the node has a public IP address enabled.
- data_
disks Sequence[ClusterNode Group Data Disk] - Host Ecs data disks information in this node group. See
data_disks
below. - instance_
types Sequence[str] - Host Ecs instance types.
- node_
count int - Host Ecs number in this node group.
- node_
group_ strname - The node group name of emr cluster.
- node_
group_ strtype - The node group type of emr cluster, supported value: MASTER, CORE or TASK. Node group type of GATEWAY is available since v1.219.0.
- system_
disk ClusterNode Group System Disk - Host Ecs system disk information in this node group. See
system_disk
below. - additional_
security_ Sequence[str]group_ ids - Additional security Group IDS for Cluster, you can also specify this key for each node group.
- cost_
optimized_ Clusterconfig Node Group Cost Optimized Config - The detail cost optimized configuration of emr cluster. See
cost_optimized_config
below. - deployment_
set_ strstrategy - Deployment set strategy for this cluster node group. Supported value: NONE, CLUSTER or NODE_GROUP.
- graceful_
shutdown bool - Enable emr cluster of task node graceful decommission, ’true’ or ‘false’ .
- node_
resize_ strstrategy - Node resize strategy for this cluster node group. Supported value: PRIORITY, COST_OPTIMIZED.
- payment_
type str - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription.
- spot_
bid_ Sequence[Clusterprices Node Group Spot Bid Price] - The spot bid prices of a PayAsYouGo instance. See
spot_bid_prices
below. - spot_
instance_ boolremedy - Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
- subscription_
config ClusterNode Group Subscription Config - The detail configuration of subscription payment type. See
subscription_config
below. - vswitch_
ids Sequence[str] - Global vSwitch ids, you can also specify it in node group.
- with_
public_ boolip - Whether the node has a public IP address enabled.
- data
Disks List<Property Map> - Host Ecs data disks information in this node group. See
data_disks
below. - instance
Types List<String> - Host Ecs instance types.
- node
Count Number - Host Ecs number in this node group.
- node
Group StringName - The node group name of emr cluster.
- node
Group StringType - The node group type of emr cluster, supported value: MASTER, CORE or TASK. Node group type of GATEWAY is available since v1.219.0.
- system
Disk Property Map - Host Ecs system disk information in this node group. See
system_disk
below. - additional
Security List<String>Group Ids - Additional security Group IDS for Cluster, you can also specify this key for each node group.
- cost
Optimized Property MapConfig - The detail cost optimized configuration of emr cluster. See
cost_optimized_config
below. - deployment
Set StringStrategy - Deployment set strategy for this cluster node group. Supported value: NONE, CLUSTER or NODE_GROUP.
- graceful
Shutdown Boolean - Enable emr cluster of task node graceful decommission, ’true’ or ‘false’ .
- node
Resize StringStrategy - Node resize strategy for this cluster node group. Supported value: PRIORITY, COST_OPTIMIZED.
- payment
Type String - Payment Type for this cluster. Supported value: PayAsYouGo or Subscription.
- spot
Bid List<Property Map>Prices - The spot bid prices of a PayAsYouGo instance. See
spot_bid_prices
below. - spot
Instance BooleanRemedy - Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
- subscription
Config Property Map - The detail configuration of subscription payment type. See
subscription_config
below. - vswitch
Ids List<String> - Global vSwitch ids, you can also specify it in node group.
- with
Public BooleanIp - Whether the node has a public IP address enabled.
ClusterNodeGroupCostOptimizedConfig, ClusterNodeGroupCostOptimizedConfigArgs
- on
Demand IntegerBase Capacity - on
Demand IntegerPercentage Above Base Capacity - spot
Instance IntegerPools
- on
Demand numberBase Capacity - on
Demand numberPercentage Above Base Capacity - spot
Instance numberPools
- on
Demand NumberBase Capacity - on
Demand NumberPercentage Above Base Capacity - spot
Instance NumberPools
ClusterNodeGroupDataDisk, ClusterNodeGroupDataDiskArgs
- Category string
- Size int
- Count int
- Performance
Level string
- Category string
- Size int
- Count int
- Performance
Level string
- category String
- size Integer
- count Integer
- performance
Level String
- category string
- size number
- count number
- performance
Level string
- category str
- size int
- count int
- performance_
level str
- category String
- size Number
- count Number
- performance
Level String
ClusterNodeGroupSpotBidPrice, ClusterNodeGroupSpotBidPriceArgs
- Bid
Price int - Instance
Type string
- Bid
Price int - Instance
Type string
- bid
Price Integer - instance
Type String
- bid
Price number - instance
Type string
- bid_
price int - instance_
type str
- bid
Price Number - instance
Type String
ClusterNodeGroupSubscriptionConfig, ClusterNodeGroupSubscriptionConfigArgs
- Payment
Duration int - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- Payment
Duration stringUnit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- Auto
Pay boolOrder - Auto pay order for payment type of subscription, ’true’ or ‘false’ .
- Auto
Renew bool - Auto renew for prepaid, ’true’ or ‘false’ . Default value: false.
- Auto
Renew intDuration - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- Auto
Renew stringDuration Unit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- Payment
Duration int - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- Payment
Duration stringUnit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- Auto
Pay boolOrder - Auto pay order for payment type of subscription, ’true’ or ‘false’ .
- Auto
Renew bool - Auto renew for prepaid, ’true’ or ‘false’ . Default value: false.
- Auto
Renew intDuration - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- Auto
Renew stringDuration Unit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- payment
Duration Integer - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- payment
Duration StringUnit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- auto
Pay BooleanOrder - Auto pay order for payment type of subscription, ’true’ or ‘false’ .
- auto
Renew Boolean - Auto renew for prepaid, ’true’ or ‘false’ . Default value: false.
- auto
Renew IntegerDuration - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- auto
Renew StringDuration Unit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- payment
Duration number - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- payment
Duration stringUnit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- auto
Pay booleanOrder - Auto pay order for payment type of subscription, ’true’ or ‘false’ .
- auto
Renew boolean - Auto renew for prepaid, ’true’ or ‘false’ . Default value: false.
- auto
Renew numberDuration - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- auto
Renew stringDuration Unit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- payment_
duration int - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- payment_
duration_ strunit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- auto_
pay_ boolorder - Auto pay order for payment type of subscription, ’true’ or ‘false’ .
- auto_
renew bool - Auto renew for prepaid, ’true’ or ‘false’ . Default value: false.
- auto_
renew_ intduration - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- auto_
renew_ strduration_ unit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- payment
Duration Number - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- payment
Duration StringUnit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- auto
Pay BooleanOrder - Auto pay order for payment type of subscription, ’true’ or ‘false’ .
- auto
Renew Boolean - Auto renew for prepaid, ’true’ or ‘false’ . Default value: false.
- auto
Renew NumberDuration - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- auto
Renew StringDuration Unit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
ClusterNodeGroupSystemDisk, ClusterNodeGroupSystemDiskArgs
- Category string
- Size int
- Count int
- Performance
Level string
- Category string
- Size int
- Count int
- Performance
Level string
- category String
- size Integer
- count Integer
- performance
Level String
- category string
- size number
- count number
- performance
Level string
- category str
- size int
- count int
- performance_
level str
- category String
- size Number
- count Number
- performance
Level String
ClusterSubscriptionConfig, ClusterSubscriptionConfigArgs
- Payment
Duration int - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- Payment
Duration stringUnit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- Auto
Pay boolOrder - Auto pay order for payment type of subscription, ’true’ or ‘false’ .
- Auto
Renew bool - Auto renew for prepaid, ’true’ or ‘false’ . Default value: false.
- Auto
Renew intDuration - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- Auto
Renew stringDuration Unit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- Payment
Duration int - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- Payment
Duration stringUnit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- Auto
Pay boolOrder - Auto pay order for payment type of subscription, ’true’ or ‘false’ .
- Auto
Renew bool - Auto renew for prepaid, ’true’ or ‘false’ . Default value: false.
- Auto
Renew intDuration - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- Auto
Renew stringDuration Unit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- payment
Duration Integer - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- payment
Duration StringUnit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- auto
Pay BooleanOrder - Auto pay order for payment type of subscription, ’true’ or ‘false’ .
- auto
Renew Boolean - Auto renew for prepaid, ’true’ or ‘false’ . Default value: false.
- auto
Renew IntegerDuration - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- auto
Renew StringDuration Unit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- payment
Duration number - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- payment
Duration stringUnit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- auto
Pay booleanOrder - Auto pay order for payment type of subscription, ’true’ or ‘false’ .
- auto
Renew boolean - Auto renew for prepaid, ’true’ or ‘false’ . Default value: false.
- auto
Renew numberDuration - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- auto
Renew stringDuration Unit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- payment_
duration int - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- payment_
duration_ strunit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- auto_
pay_ boolorder - Auto pay order for payment type of subscription, ’true’ or ‘false’ .
- auto_
renew bool - Auto renew for prepaid, ’true’ or ‘false’ . Default value: false.
- auto_
renew_ intduration - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- auto_
renew_ strduration_ unit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- payment
Duration Number - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- payment
Duration StringUnit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
- auto
Pay BooleanOrder - Auto pay order for payment type of subscription, ’true’ or ‘false’ .
- auto
Renew Boolean - Auto renew for prepaid, ’true’ or ‘false’ . Default value: false.
- auto
Renew NumberDuration - If paymentType is Subscription, this should be specified. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36、48.
- auto
Renew StringDuration Unit - If paymentType is Subscription, this should be specified. Supported value: Month or Year.
Import
Aliclioud E-MapReduce cluster can be imported using the id e.g.
$ pulumi import alicloud:emrv2/cluster:Cluster default <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.