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 in v1.199.0+.
Example Usage
Basic Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var defaultResourceGroups = AliCloud.ResourceManager.GetResourceGroups.Invoke(new()
{
Status = "OK",
});
var defaultZones = AliCloud.GetZones.Invoke(new()
{
AvailableInstanceType = "ecs.g7.xlarge",
});
var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new()
{
VpcName = "TF-VPC",
CidrBlock = "172.16.0.0/12",
});
var defaultSwitch = new AliCloud.Vpc.Switch("defaultSwitch", new()
{
VpcId = defaultNetwork.Id,
CidrBlock = "172.16.0.0/21",
ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
VswitchName = "TF_VSwitch",
});
var defaultEcsKeyPair = new AliCloud.Ecs.EcsKeyPair("defaultEcsKeyPair", new()
{
KeyPairName = "terraform-kp",
});
var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("defaultSecurityGroup", new()
{
VpcId = defaultNetwork.Id,
});
var defaultRole = new AliCloud.Ram.Role("defaultRole", new()
{
Document = @" {
""Statement"": [
{
""Action"": ""sts:AssumeRole"",
""Effect"": ""Allow"",
""Principal"": {
""Service"": [
""emr.aliyuncs.com"",
""ecs.aliyuncs.com""
]
}
}
],
""Version"": ""1""
}
",
Description = "this is a role test.",
Force = true,
});
var defaultCluster = new AliCloud.Emrv2.Cluster("defaultCluster", new()
{
PaymentType = "PayAsYouGo",
ClusterType = "DATALAKE",
ReleaseVersion = "EMR-5.10.0",
ClusterName = "terraform-emr-cluster-v2",
DeployMode = "NORMAL",
SecurityMode = "NORMAL",
Applications = new[]
{
"HADOOP-COMMON",
"HDFS",
"YARN",
"HIVE",
"SPARK3",
"TEZ",
},
ApplicationConfigs = new[]
{
new AliCloud.Emrv2.Inputs.ClusterApplicationConfigArgs
{
ApplicationName = "HIVE",
ConfigFileName = "hivemetastore-site.xml",
ConfigItemKey = "hive.metastore.type",
ConfigItemValue = "DLF",
ConfigScope = "CLUSTER",
},
new AliCloud.Emrv2.Inputs.ClusterApplicationConfigArgs
{
ApplicationName = "SPARK3",
ConfigFileName = "hive-site.xml",
ConfigItemKey = "hive.metastore.type",
ConfigItemValue = "DLF",
ConfigScope = "CLUSTER",
},
},
NodeAttributes = new[]
{
new AliCloud.Emrv2.Inputs.ClusterNodeAttributeArgs
{
RamRole = defaultRole.Name,
SecurityGroupId = defaultSecurityGroup.Id,
VpcId = defaultNetwork.Id,
ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
KeyPairName = defaultEcsKeyPair.Id,
},
},
Tags =
{
{ "created", "tf" },
},
NodeGroups = new[]
{
new AliCloud.Emrv2.Inputs.ClusterNodeGroupArgs
{
NodeGroupType = "MASTER",
NodeGroupName = "emr-master",
PaymentType = "PayAsYouGo",
VswitchIds = new[]
{
defaultSwitch.Id,
},
WithPublicIp = false,
InstanceTypes = new[]
{
"ecs.g7.xlarge",
},
NodeCount = 1,
SystemDisk = new AliCloud.Emrv2.Inputs.ClusterNodeGroupSystemDiskArgs
{
Category = "cloud_essd",
Size = 80,
Count = 1,
},
DataDisks = new[]
{
new AliCloud.Emrv2.Inputs.ClusterNodeGroupDataDiskArgs
{
Category = "cloud_essd",
Size = 80,
Count = 3,
},
},
},
new AliCloud.Emrv2.Inputs.ClusterNodeGroupArgs
{
NodeGroupType = "CORE",
NodeGroupName = "emr-core",
PaymentType = "PayAsYouGo",
VswitchIds = new[]
{
defaultSwitch.Id,
},
WithPublicIp = false,
InstanceTypes = new[]
{
"ecs.g7.xlarge",
},
NodeCount = 3,
SystemDisk = new AliCloud.Emrv2.Inputs.ClusterNodeGroupSystemDiskArgs
{
Category = "cloud_essd",
Size = 80,
Count = 1,
},
DataDisks = new[]
{
new AliCloud.Emrv2.Inputs.ClusterNodeGroupDataDiskArgs
{
Category = "cloud_essd",
Size = 80,
Count = 3,
},
},
},
},
ResourceGroupId = defaultResourceGroups.Apply(getResourceGroupsResult => getResourceGroupsResult.Ids[0]),
});
});
package main
import (
"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/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/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
defaultResourceGroups, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{
Status: pulumi.StringRef("OK"),
}, nil)
if err != nil {
return err
}
defaultZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
AvailableInstanceType: pulumi.StringRef("ecs.g7.xlarge"),
}, nil)
if err != nil {
return err
}
defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
VpcName: pulumi.String("TF-VPC"),
CidrBlock: pulumi.String("172.16.0.0/12"),
})
if err != nil {
return err
}
defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
VpcId: defaultNetwork.ID(),
CidrBlock: pulumi.String("172.16.0.0/21"),
ZoneId: *pulumi.String(defaultZones.Zones[0].Id),
VswitchName: pulumi.String("TF_VSwitch"),
})
if err != nil {
return err
}
defaultEcsKeyPair, err := ecs.NewEcsKeyPair(ctx, "defaultEcsKeyPair", &ecs.EcsKeyPairArgs{
KeyPairName: pulumi.String("terraform-kp"),
})
if err != nil {
return err
}
defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "defaultSecurityGroup", &ecs.SecurityGroupArgs{
VpcId: defaultNetwork.ID(),
})
if err != nil {
return err
}
defaultRole, err := ram.NewRole(ctx, "defaultRole", &ram.RoleArgs{
Document: pulumi.String(" {\n \"Statement\": [\n {\n \"Action\": \"sts:AssumeRole\",\n \"Effect\": \"Allow\",\n \"Principal\": {\n \"Service\": [\n \"emr.aliyuncs.com\",\n \"ecs.aliyuncs.com\"\n ]\n }\n }\n ],\n \"Version\": \"1\"\n }\n"),
Description: pulumi.String("this is a role test."),
Force: pulumi.Bool(true),
})
if err != nil {
return err
}
_, err = emrv2.NewCluster(ctx, "defaultCluster", &emrv2.ClusterArgs{
PaymentType: pulumi.String("PayAsYouGo"),
ClusterType: pulumi.String("DATALAKE"),
ReleaseVersion: pulumi.String("EMR-5.10.0"),
ClusterName: pulumi.String("terraform-emr-cluster-v2"),
DeployMode: pulumi.String("NORMAL"),
SecurityMode: pulumi.String("NORMAL"),
Applications: pulumi.StringArray{
pulumi.String("HADOOP-COMMON"),
pulumi.String("HDFS"),
pulumi.String("YARN"),
pulumi.String("HIVE"),
pulumi.String("SPARK3"),
pulumi.String("TEZ"),
},
ApplicationConfigs: emrv2.ClusterApplicationConfigArray{
&emrv2.ClusterApplicationConfigArgs{
ApplicationName: pulumi.String("HIVE"),
ConfigFileName: pulumi.String("hivemetastore-site.xml"),
ConfigItemKey: pulumi.String("hive.metastore.type"),
ConfigItemValue: pulumi.String("DLF"),
ConfigScope: pulumi.String("CLUSTER"),
},
&emrv2.ClusterApplicationConfigArgs{
ApplicationName: pulumi.String("SPARK3"),
ConfigFileName: pulumi.String("hive-site.xml"),
ConfigItemKey: pulumi.String("hive.metastore.type"),
ConfigItemValue: pulumi.String("DLF"),
ConfigScope: pulumi.String("CLUSTER"),
},
},
NodeAttributes: emrv2.ClusterNodeAttributeArray{
&emrv2.ClusterNodeAttributeArgs{
RamRole: defaultRole.Name,
SecurityGroupId: defaultSecurityGroup.ID(),
VpcId: defaultNetwork.ID(),
ZoneId: *pulumi.String(defaultZones.Zones[0].Id),
KeyPairName: defaultEcsKeyPair.ID(),
},
},
Tags: pulumi.AnyMap{
"created": pulumi.Any("tf"),
},
NodeGroups: emrv2.ClusterNodeGroupArray{
&emrv2.ClusterNodeGroupArgs{
NodeGroupType: pulumi.String("MASTER"),
NodeGroupName: pulumi.String("emr-master"),
PaymentType: pulumi.String("PayAsYouGo"),
VswitchIds: pulumi.StringArray{
defaultSwitch.ID(),
},
WithPublicIp: pulumi.Bool(false),
InstanceTypes: pulumi.StringArray{
pulumi.String("ecs.g7.xlarge"),
},
NodeCount: pulumi.Int(1),
SystemDisk: &emrv2.ClusterNodeGroupSystemDiskArgs{
Category: pulumi.String("cloud_essd"),
Size: pulumi.Int(80),
Count: pulumi.Int(1),
},
DataDisks: emrv2.ClusterNodeGroupDataDiskArray{
&emrv2.ClusterNodeGroupDataDiskArgs{
Category: pulumi.String("cloud_essd"),
Size: pulumi.Int(80),
Count: pulumi.Int(3),
},
},
},
&emrv2.ClusterNodeGroupArgs{
NodeGroupType: pulumi.String("CORE"),
NodeGroupName: pulumi.String("emr-core"),
PaymentType: pulumi.String("PayAsYouGo"),
VswitchIds: pulumi.StringArray{
defaultSwitch.ID(),
},
WithPublicIp: pulumi.Bool(false),
InstanceTypes: pulumi.StringArray{
pulumi.String("ecs.g7.xlarge"),
},
NodeCount: pulumi.Int(3),
SystemDisk: &emrv2.ClusterNodeGroupSystemDiskArgs{
Category: pulumi.String("cloud_essd"),
Size: pulumi.Int(80),
Count: pulumi.Int(1),
},
DataDisks: emrv2.ClusterNodeGroupDataDiskArray{
&emrv2.ClusterNodeGroupDataDiskArgs{
Category: pulumi.String("cloud_essd"),
Size: pulumi.Int(80),
Count: pulumi.Int(3),
},
},
},
},
ResourceGroupId: *pulumi.String(defaultResourceGroups.Ids[0]),
})
if err != nil {
return err
}
return nil
})
}
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.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.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.ClusterApplicationConfigArgs;
import com.pulumi.alicloud.emrv2.inputs.ClusterNodeAttributeArgs;
import com.pulumi.alicloud.emrv2.inputs.ClusterNodeGroupArgs;
import com.pulumi.alicloud.emrv2.inputs.ClusterNodeGroupSystemDiskArgs;
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 defaultResourceGroups = ResourcemanagerFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
.status("OK")
.build());
final var defaultZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
.availableInstanceType("ecs.g7.xlarge")
.build());
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName("TF-VPC")
.cidrBlock("172.16.0.0/12")
.build());
var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
.vpcId(defaultNetwork.id())
.cidrBlock("172.16.0.0/21")
.zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.vswitchName("TF_VSwitch")
.build());
var defaultEcsKeyPair = new EcsKeyPair("defaultEcsKeyPair", EcsKeyPairArgs.builder()
.keyPairName("terraform-kp")
.build());
var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
.vpcId(defaultNetwork.id())
.build());
var defaultRole = new Role("defaultRole", RoleArgs.builder()
.document("""
{
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": [
"emr.aliyuncs.com",
"ecs.aliyuncs.com"
]
}
}
],
"Version": "1"
}
""")
.description("this is a role test.")
.force(true)
.build());
var defaultCluster = new Cluster("defaultCluster", ClusterArgs.builder()
.paymentType("PayAsYouGo")
.clusterType("DATALAKE")
.releaseVersion("EMR-5.10.0")
.clusterName("terraform-emr-cluster-v2")
.deployMode("NORMAL")
.securityMode("NORMAL")
.applications(
"HADOOP-COMMON",
"HDFS",
"YARN",
"HIVE",
"SPARK3",
"TEZ")
.applicationConfigs(
ClusterApplicationConfigArgs.builder()
.applicationName("HIVE")
.configFileName("hivemetastore-site.xml")
.configItemKey("hive.metastore.type")
.configItemValue("DLF")
.configScope("CLUSTER")
.build(),
ClusterApplicationConfigArgs.builder()
.applicationName("SPARK3")
.configFileName("hive-site.xml")
.configItemKey("hive.metastore.type")
.configItemValue("DLF")
.configScope("CLUSTER")
.build())
.nodeAttributes(ClusterNodeAttributeArgs.builder()
.ramRole(defaultRole.name())
.securityGroupId(defaultSecurityGroup.id())
.vpcId(defaultNetwork.id())
.zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.keyPairName(defaultEcsKeyPair.id())
.build())
.tags(Map.of("created", "tf"))
.nodeGroups(
ClusterNodeGroupArgs.builder()
.nodeGroupType("MASTER")
.nodeGroupName("emr-master")
.paymentType("PayAsYouGo")
.vswitchIds(defaultSwitch.id())
.withPublicIp(false)
.instanceTypes("ecs.g7.xlarge")
.nodeCount(1)
.systemDisk(ClusterNodeGroupSystemDiskArgs.builder()
.category("cloud_essd")
.size(80)
.count(1)
.build())
.dataDisks(ClusterNodeGroupDataDiskArgs.builder()
.category("cloud_essd")
.size(80)
.count(3)
.build())
.build(),
ClusterNodeGroupArgs.builder()
.nodeGroupType("CORE")
.nodeGroupName("emr-core")
.paymentType("PayAsYouGo")
.vswitchIds(defaultSwitch.id())
.withPublicIp(false)
.instanceTypes("ecs.g7.xlarge")
.nodeCount(3)
.systemDisk(ClusterNodeGroupSystemDiskArgs.builder()
.category("cloud_essd")
.size(80)
.count(1)
.build())
.dataDisks(ClusterNodeGroupDataDiskArgs.builder()
.category("cloud_essd")
.size(80)
.count(3)
.build())
.build())
.resourceGroupId(defaultResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.ids()[0]))
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
default_resource_groups = alicloud.resourcemanager.get_resource_groups(status="OK")
default_zones = alicloud.get_zones(available_instance_type="ecs.g7.xlarge")
default_network = alicloud.vpc.Network("defaultNetwork",
vpc_name="TF-VPC",
cidr_block="172.16.0.0/12")
default_switch = alicloud.vpc.Switch("defaultSwitch",
vpc_id=default_network.id,
cidr_block="172.16.0.0/21",
zone_id=default_zones.zones[0].id,
vswitch_name="TF_VSwitch")
default_ecs_key_pair = alicloud.ecs.EcsKeyPair("defaultEcsKeyPair", key_pair_name="terraform-kp")
default_security_group = alicloud.ecs.SecurityGroup("defaultSecurityGroup", vpc_id=default_network.id)
default_role = alicloud.ram.Role("defaultRole",
document=""" {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": [
"emr.aliyuncs.com",
"ecs.aliyuncs.com"
]
}
}
],
"Version": "1"
}
""",
description="this is a role test.",
force=True)
default_cluster = alicloud.emrv2.Cluster("defaultCluster",
payment_type="PayAsYouGo",
cluster_type="DATALAKE",
release_version="EMR-5.10.0",
cluster_name="terraform-emr-cluster-v2",
deploy_mode="NORMAL",
security_mode="NORMAL",
applications=[
"HADOOP-COMMON",
"HDFS",
"YARN",
"HIVE",
"SPARK3",
"TEZ",
],
application_configs=[
alicloud.emrv2.ClusterApplicationConfigArgs(
application_name="HIVE",
config_file_name="hivemetastore-site.xml",
config_item_key="hive.metastore.type",
config_item_value="DLF",
config_scope="CLUSTER",
),
alicloud.emrv2.ClusterApplicationConfigArgs(
application_name="SPARK3",
config_file_name="hive-site.xml",
config_item_key="hive.metastore.type",
config_item_value="DLF",
config_scope="CLUSTER",
),
],
node_attributes=[alicloud.emrv2.ClusterNodeAttributeArgs(
ram_role=default_role.name,
security_group_id=default_security_group.id,
vpc_id=default_network.id,
zone_id=default_zones.zones[0].id,
key_pair_name=default_ecs_key_pair.id,
)],
tags={
"created": "tf",
},
node_groups=[
alicloud.emrv2.ClusterNodeGroupArgs(
node_group_type="MASTER",
node_group_name="emr-master",
payment_type="PayAsYouGo",
vswitch_ids=[default_switch.id],
with_public_ip=False,
instance_types=["ecs.g7.xlarge"],
node_count=1,
system_disk=alicloud.emrv2.ClusterNodeGroupSystemDiskArgs(
category="cloud_essd",
size=80,
count=1,
),
data_disks=[alicloud.emrv2.ClusterNodeGroupDataDiskArgs(
category="cloud_essd",
size=80,
count=3,
)],
),
alicloud.emrv2.ClusterNodeGroupArgs(
node_group_type="CORE",
node_group_name="emr-core",
payment_type="PayAsYouGo",
vswitch_ids=[default_switch.id],
with_public_ip=False,
instance_types=["ecs.g7.xlarge"],
node_count=3,
system_disk=alicloud.emrv2.ClusterNodeGroupSystemDiskArgs(
category="cloud_essd",
size=80,
count=1,
),
data_disks=[alicloud.emrv2.ClusterNodeGroupDataDiskArgs(
category="cloud_essd",
size=80,
count=3,
)],
),
],
resource_group_id=default_resource_groups.ids[0])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const defaultResourceGroups = alicloud.resourcemanager.getResourceGroups({
status: "OK",
});
const defaultZones = alicloud.getZones({
availableInstanceType: "ecs.g7.xlarge",
});
const defaultNetwork = new alicloud.vpc.Network("defaultNetwork", {
vpcName: "TF-VPC",
cidrBlock: "172.16.0.0/12",
});
const defaultSwitch = new alicloud.vpc.Switch("defaultSwitch", {
vpcId: defaultNetwork.id,
cidrBlock: "172.16.0.0/21",
zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
vswitchName: "TF_VSwitch",
});
const defaultEcsKeyPair = new alicloud.ecs.EcsKeyPair("defaultEcsKeyPair", {keyPairName: "terraform-kp"});
const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("defaultSecurityGroup", {vpcId: defaultNetwork.id});
const defaultRole = new alicloud.ram.Role("defaultRole", {
document: ` {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": [
"emr.aliyuncs.com",
"ecs.aliyuncs.com"
]
}
}
],
"Version": "1"
}
`,
description: "this is a role test.",
force: true,
});
const defaultCluster = new alicloud.emrv2.Cluster("defaultCluster", {
paymentType: "PayAsYouGo",
clusterType: "DATALAKE",
releaseVersion: "EMR-5.10.0",
clusterName: "terraform-emr-cluster-v2",
deployMode: "NORMAL",
securityMode: "NORMAL",
applications: [
"HADOOP-COMMON",
"HDFS",
"YARN",
"HIVE",
"SPARK3",
"TEZ",
],
applicationConfigs: [
{
applicationName: "HIVE",
configFileName: "hivemetastore-site.xml",
configItemKey: "hive.metastore.type",
configItemValue: "DLF",
configScope: "CLUSTER",
},
{
applicationName: "SPARK3",
configFileName: "hive-site.xml",
configItemKey: "hive.metastore.type",
configItemValue: "DLF",
configScope: "CLUSTER",
},
],
nodeAttributes: [{
ramRole: defaultRole.name,
securityGroupId: defaultSecurityGroup.id,
vpcId: defaultNetwork.id,
zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
keyPairName: defaultEcsKeyPair.id,
}],
tags: {
created: "tf",
},
nodeGroups: [
{
nodeGroupType: "MASTER",
nodeGroupName: "emr-master",
paymentType: "PayAsYouGo",
vswitchIds: [defaultSwitch.id],
withPublicIp: false,
instanceTypes: ["ecs.g7.xlarge"],
nodeCount: 1,
systemDisk: {
category: "cloud_essd",
size: 80,
count: 1,
},
dataDisks: [{
category: "cloud_essd",
size: 80,
count: 3,
}],
},
{
nodeGroupType: "CORE",
nodeGroupName: "emr-core",
paymentType: "PayAsYouGo",
vswitchIds: [defaultSwitch.id],
withPublicIp: false,
instanceTypes: ["ecs.g7.xlarge"],
nodeCount: 3,
systemDisk: {
category: "cloud_essd",
size: 80,
count: 1,
},
dataDisks: [{
category: "cloud_essd",
size: 80,
count: 3,
}],
},
],
resourceGroupId: defaultResourceGroups.then(defaultResourceGroups => defaultResourceGroups.ids?.[0]),
});
resources:
defaultNetwork:
type: alicloud:vpc:Network
properties:
vpcName: TF-VPC
cidrBlock: 172.16.0.0/12
defaultSwitch:
type: alicloud:vpc:Switch
properties:
vpcId: ${defaultNetwork.id}
cidrBlock: 172.16.0.0/21
zoneId: ${defaultZones.zones[0].id}
vswitchName: TF_VSwitch
defaultEcsKeyPair:
type: alicloud:ecs:EcsKeyPair
properties:
keyPairName: terraform-kp
defaultSecurityGroup:
type: alicloud:ecs:SecurityGroup
properties:
vpcId: ${defaultNetwork.id}
defaultRole:
type: alicloud:ram:Role
properties:
document: |2
{
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": [
"emr.aliyuncs.com",
"ecs.aliyuncs.com"
]
}
}
],
"Version": "1"
}
description: this is a role test.
force: true
defaultCluster:
type: alicloud:emrv2:Cluster
properties:
paymentType: PayAsYouGo
clusterType: DATALAKE
releaseVersion: EMR-5.10.0
clusterName: terraform-emr-cluster-v2
deployMode: NORMAL
securityMode: NORMAL
applications:
- HADOOP-COMMON
- HDFS
- YARN
- HIVE
- SPARK3
- TEZ
applicationConfigs:
- applicationName: HIVE
configFileName: hivemetastore-site.xml
configItemKey: hive.metastore.type
configItemValue: DLF
configScope: CLUSTER
- applicationName: SPARK3
configFileName: hive-site.xml
configItemKey: hive.metastore.type
configItemValue: DLF
configScope: CLUSTER
nodeAttributes:
- ramRole: ${defaultRole.name}
securityGroupId: ${defaultSecurityGroup.id}
vpcId: ${defaultNetwork.id}
zoneId: ${defaultZones.zones[0].id}
keyPairName: ${defaultEcsKeyPair.id}
tags:
created: tf
nodeGroups:
- nodeGroupType: MASTER
nodeGroupName: emr-master
paymentType: PayAsYouGo
vswitchIds:
- ${defaultSwitch.id}
withPublicIp: false
instanceTypes:
- ecs.g7.xlarge
nodeCount: 1
systemDisk:
category: cloud_essd
size: 80
count: 1
dataDisks:
- category: cloud_essd
size: 80
count: 3
- nodeGroupType: CORE
nodeGroupName: emr-core
paymentType: PayAsYouGo
vswitchIds:
- ${defaultSwitch.id}
withPublicIp: false
instanceTypes:
- ecs.g7.xlarge
nodeCount: 3
systemDisk:
category: cloud_essd
size: 80
count: 1
dataDisks:
- category: cloud_essd
size: 80
count: 3
resourceGroupId: ${defaultResourceGroups.ids[0]}
variables:
defaultResourceGroups:
fn::invoke:
Function: alicloud:resourcemanager:getResourceGroups
Arguments:
status: OK
defaultZones:
fn::invoke:
Function: alicloud:getZones
Arguments:
availableInstanceType: ecs.g7.xlarge
Create Cluster Resource
new Cluster(name: string, args: ClusterArgs, opts?: CustomResourceOptions);
@overload
def Cluster(resource_name: 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,
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)
@overload
def Cluster(resource_name: str,
args: ClusterArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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 Args> The node attributes of ecs instances which the emr-cluster belongs.
- Node
Groups List<Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Node Group Args> Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example).
- 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 Args> The application configurations of EMR cluster.
- Bootstrap
Scripts List<Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Bootstrap Script Args> The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster.
- Deploy
Mode string The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- 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 Args The detail configuration of subscription payment type.
- 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.
- Node
Groups []ClusterNode Group Args Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example).
- 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.
- Bootstrap
Scripts []ClusterBootstrap Script Args The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster.
- Deploy
Mode string The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- 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.
- 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 Args> The node attributes of ecs instances which the emr-cluster belongs.
- node
Groups List<ClusterNode Group Args> Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example).
- 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 Args> The application configurations of EMR cluster.
- bootstrap
Scripts List<ClusterBootstrap Script Args> The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster.
- deploy
Mode String The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- 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.
- 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 Args[] The node attributes of ecs instances which the emr-cluster belongs.
- node
Groups ClusterNode Group Args[] Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example).
- 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.
- bootstrap
Scripts ClusterBootstrap Script Args[] The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster.
- deploy
Mode string The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- 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.
- {[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.
- 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).
- 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.
- bootstrap_
scripts Sequence[ClusterBootstrap Script Args] The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster.
- deploy_
mode str The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- 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.
- 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.
- node
Groups List<Property Map> Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example).
- 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.
- bootstrap
Scripts List<Property Map> The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster.
- deploy
Mode String The deploy mode of EMR cluster. Supported value: NORMAL or HA.
- 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.
- 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,
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 Args> The application configurations of EMR cluster.
- 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 Args> The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster.
- 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.
- Node
Attributes List<Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Node Attribute Args> The node attributes of ecs instances which the emr-cluster belongs.
- Node
Groups List<Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Node Group Args> Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example).
- 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 Args The detail configuration of subscription payment type.
- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Application
Configs []ClusterApplication Config Args The application configurations of EMR cluster.
- 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.
- 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.
- Node
Attributes []ClusterNode Attribute Args The node attributes of ecs instances which the emr-cluster belongs.
- Node
Groups []ClusterNode Group Args Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example).
- 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.
- map[string]interface{}
A mapping of tags to assign to the resource.
- application
Configs List<ClusterApplication Config Args> The application configurations of EMR cluster.
- 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 Args> The bootstrap scripts to be effected when creating emr-cluster or resize emr-cluster.
- 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.
- node
Attributes List<ClusterNode Attribute Args> The node attributes of ecs instances which the emr-cluster belongs.
- node
Groups List<ClusterNode Group Args> Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example).
- 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.
- Map<String,Object>
A mapping of tags to assign to the resource.
- application
Configs ClusterApplication Config Args[] The application configurations of EMR cluster.
- 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.
- 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.
- node
Attributes ClusterNode Attribute Args[] The node attributes of ecs instances which the emr-cluster belongs.
- node
Groups ClusterNode Group Args[] Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example).
- 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.
- {[key: string]: any}
A mapping of tags to assign to the resource.
- application_
configs Sequence[ClusterApplication Config Args] The application configurations of EMR cluster.
- 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.
- 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.
- node_
attributes Sequence[ClusterNode Attribute Args] The node attributes of ecs instances which the emr-cluster belongs.
- 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).
- 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.
- Mapping[str, Any]
A mapping of tags to assign to the resource.
- application
Configs List<Property Map> The application configurations of EMR cluster.
- 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.
- 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.
- node
Attributes List<Property Map> The node attributes of ecs instances which the emr-cluster belongs.
- node
Groups List<Property Map> Groups of node, You can specify MASTER as a group, CORE as a group (just like the above example).
- 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.
- Map<Any>
A mapping of tags to assign to the resource.
Supporting Types
ClusterApplicationConfig
- 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
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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
- Node
Select stringType The bootstrap scripts execution target node select type. Supported value: NODE, NODEGROUP or CLUSTER.
- 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.
- Node
Group List<string>Types The bootstrap scripts execution target node group types.
- Node
Names List<string> The bootstrap scripts execution target node names.
- Node
Select stringType The bootstrap scripts execution target node select type. Supported value: NODE, NODEGROUP or CLUSTER.
- 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.
- Node
Group []stringTypes The bootstrap scripts execution target node group types.
- Node
Names []string The bootstrap scripts execution target node names.
- node
Select StringType The bootstrap scripts execution target node select type. Supported value: NODE, NODEGROUP or CLUSTER.
- 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.
- node
Group List<String>Types The bootstrap scripts execution target node group types.
- node
Names List<String> The bootstrap scripts execution target node names.
- node
Select stringType The bootstrap scripts execution target node select type. Supported value: NODE, NODEGROUP or CLUSTER.
- 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.
- node
Group string[]Types The bootstrap scripts execution target node group types.
- node
Names string[] The bootstrap scripts execution target node names.
- node_
select_ strtype The bootstrap scripts execution target node select type. Supported value: NODE, NODEGROUP or CLUSTER.
- 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.
- node_
group_ Sequence[str]types The bootstrap scripts execution target node group types.
- node_
names Sequence[str] The bootstrap scripts execution target node names.
- node
Select StringType The bootstrap scripts execution target node select type. Supported value: NODE, NODEGROUP or CLUSTER.
- 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.
- node
Group List<String>Types The bootstrap scripts execution target node group types.
- node
Names List<String> The bootstrap scripts execution target node names.
ClusterNodeAttribute
- 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
- Data
Disks List<Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Node Group Data Disk> Host Ecs data disks information in this node group.
- Instance
Types List<string> Host Ecs instance types.
- Node
Count int Host Ecs number in this node group.
- Node
Group stringName The configuration effected which node group name of emr cluster.
- Node
Group stringType The node group type of emr cluster, supported value: MASTER, CORE or TASK.
- System
Disk Pulumi.Ali Cloud. Emrv2. Inputs. Cluster Node Group System Disk Host Ecs system disk information in this node group.
- 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.
- Graceful
Shutdown bool Enable emr cluster of task node graceful decommission, ’true’ or ‘false’ .
- 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.
- 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.
- 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.
- Instance
Types []string Host Ecs instance types.
- Node
Count int Host Ecs number in this node group.
- Node
Group stringName The configuration effected which node group name of emr cluster.
- Node
Group stringType The node group type of emr cluster, supported value: MASTER, CORE or TASK.
- System
Disk ClusterNode Group System Disk Host Ecs system disk information in this node group.
- 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.
- Graceful
Shutdown bool Enable emr cluster of task node graceful decommission, ’true’ or ‘false’ .
- 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.
- 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.
- 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.
- instance
Types List<String> Host Ecs instance types.
- node
Count Integer Host Ecs number in this node group.
- node
Group StringName The configuration effected which node group name of emr cluster.
- node
Group StringType The node group type of emr cluster, supported value: MASTER, CORE or TASK.
- system
Disk ClusterNode Group System Disk Host Ecs system disk information in this node group.
- 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.
- graceful
Shutdown Boolean Enable emr cluster of task node graceful decommission, ’true’ or ‘false’ .
- 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.
- 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.
- 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.
- instance
Types string[] Host Ecs instance types.
- node
Count number Host Ecs number in this node group.
- node
Group stringName The configuration effected which node group name of emr cluster.
- node
Group stringType The node group type of emr cluster, supported value: MASTER, CORE or TASK.
- system
Disk ClusterNode Group System Disk Host Ecs system disk information in this node group.
- 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.
- graceful
Shutdown boolean Enable emr cluster of task node graceful decommission, ’true’ or ‘false’ .
- 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.
- 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.
- 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.
- instance_
types Sequence[str] Host Ecs instance types.
- node_
count int Host Ecs number in this node group.
- node_
group_ strname The configuration effected which node group name of emr cluster.
- node_
group_ strtype The node group type of emr cluster, supported value: MASTER, CORE or TASK.
- system_
disk ClusterNode Group System Disk Host Ecs system disk information in this node group.
- 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.
- graceful_
shutdown bool Enable emr cluster of task node graceful decommission, ’true’ or ‘false’ .
- 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.
- 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.
- 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.
- instance
Types List<String> Host Ecs instance types.
- node
Count Number Host Ecs number in this node group.
- node
Group StringName The configuration effected which node group name of emr cluster.
- node
Group StringType The node group type of emr cluster, supported value: MASTER, CORE or TASK.
- system
Disk Property Map Host Ecs system disk information in this node group.
- 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.
- graceful
Shutdown Boolean Enable emr cluster of task node graceful decommission, ’true’ or ‘false’ .
- 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.
- 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.
- 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
- On
Demand intBase Capacity The cost optimized configuration which on demand based capacity.
- On
Demand intPercentage Above Base Capacity The cost optimized configuration which on demand percentage above based capacity.
- Spot
Instance intPools The cost optimized configuration with spot instance pools.
- On
Demand intBase Capacity The cost optimized configuration which on demand based capacity.
- On
Demand intPercentage Above Base Capacity The cost optimized configuration which on demand percentage above based capacity.
- Spot
Instance intPools The cost optimized configuration with spot instance pools.
- on
Demand IntegerBase Capacity The cost optimized configuration which on demand based capacity.
- on
Demand IntegerPercentage Above Base Capacity The cost optimized configuration which on demand percentage above based capacity.
- spot
Instance IntegerPools The cost optimized configuration with spot instance pools.
- on
Demand numberBase Capacity The cost optimized configuration which on demand based capacity.
- on
Demand numberPercentage Above Base Capacity The cost optimized configuration which on demand percentage above based capacity.
- spot
Instance numberPools The cost optimized configuration with spot instance pools.
- on_
demand_ intbase_ capacity The cost optimized configuration which on demand based capacity.
- on_
demand_ intpercentage_ above_ base_ capacity The cost optimized configuration which on demand percentage above based capacity.
- spot_
instance_ intpools The cost optimized configuration with spot instance pools.
- on
Demand NumberBase Capacity The cost optimized configuration which on demand based capacity.
- on
Demand NumberPercentage Above Base Capacity The cost optimized configuration which on demand percentage above based capacity.
- spot
Instance NumberPools The cost optimized configuration with spot instance pools.
ClusterNodeGroupDataDisk
- Category string
The type of the data disk. Valid values:
cloud_efficiency
andcloud_essd
.- Size int
The size of a data disk, at least 40. Unit: GiB.
- Count int
The count of a data disk.
- Performance
Level string Worker node data disk performance level, when
category
valuescloud_essd
, the optional values arePL0
,PL1
,PL2
orPL3
, but the specific performance level is related to the disk capacity.
- Category string
The type of the data disk. Valid values:
cloud_efficiency
andcloud_essd
.- Size int
The size of a data disk, at least 40. Unit: GiB.
- Count int
The count of a data disk.
- Performance
Level string Worker node data disk performance level, when
category
valuescloud_essd
, the optional values arePL0
,PL1
,PL2
orPL3
, but the specific performance level is related to the disk capacity.
- category String
The type of the data disk. Valid values:
cloud_efficiency
andcloud_essd
.- size Integer
The size of a data disk, at least 40. Unit: GiB.
- count Integer
The count of a data disk.
- performance
Level String Worker node data disk performance level, when
category
valuescloud_essd
, the optional values arePL0
,PL1
,PL2
orPL3
, but the specific performance level is related to the disk capacity.
- category string
The type of the data disk. Valid values:
cloud_efficiency
andcloud_essd
.- size number
The size of a data disk, at least 40. Unit: GiB.
- count number
The count of a data disk.
- performance
Level string Worker node data disk performance level, when
category
valuescloud_essd
, the optional values arePL0
,PL1
,PL2
orPL3
, but the specific performance level is related to the disk capacity.
- category str
The type of the data disk. Valid values:
cloud_efficiency
andcloud_essd
.- size int
The size of a data disk, at least 40. Unit: GiB.
- count int
The count of a data disk.
- performance_
level str Worker node data disk performance level, when
category
valuescloud_essd
, the optional values arePL0
,PL1
,PL2
orPL3
, but the specific performance level is related to the disk capacity.
- category String
The type of the data disk. Valid values:
cloud_efficiency
andcloud_essd
.- size Number
The size of a data disk, at least 40. Unit: GiB.
- count Number
The count of a data disk.
- performance
Level String Worker node data disk performance level, when
category
valuescloud_essd
, the optional values arePL0
,PL1
,PL2
orPL3
, but the specific performance level is related to the disk capacity.
ClusterNodeGroupSpotBidPrice
- Bid
Price int The spot bid price of a PayAsYouGo instance.
- Instance
Type string Host Ecs instance type.
- Bid
Price int The spot bid price of a PayAsYouGo instance.
- Instance
Type string Host Ecs instance type.
- bid
Price Integer The spot bid price of a PayAsYouGo instance.
- instance
Type String Host Ecs instance type.
- bid
Price number The spot bid price of a PayAsYouGo instance.
- instance
Type string Host Ecs instance type.
- bid_
price int The spot bid price of a PayAsYouGo instance.
- instance_
type str Host Ecs instance type.
- bid
Price Number The spot bid price of a PayAsYouGo instance.
- instance
Type String Host Ecs instance type.
ClusterNodeGroupSubscriptionConfig
- 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
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
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
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
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_
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
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
- Category string
The type of the data disk. Valid values:
cloud_efficiency
andcloud_essd
.- Size int
The size of a data disk, at least 40. Unit: GiB.
- Count int
The count of a data disk.
- Performance
Level string Worker node data disk performance level, when
category
valuescloud_essd
, the optional values arePL0
,PL1
,PL2
orPL3
, but the specific performance level is related to the disk capacity.
- Category string
The type of the data disk. Valid values:
cloud_efficiency
andcloud_essd
.- Size int
The size of a data disk, at least 40. Unit: GiB.
- Count int
The count of a data disk.
- Performance
Level string Worker node data disk performance level, when
category
valuescloud_essd
, the optional values arePL0
,PL1
,PL2
orPL3
, but the specific performance level is related to the disk capacity.
- category String
The type of the data disk. Valid values:
cloud_efficiency
andcloud_essd
.- size Integer
The size of a data disk, at least 40. Unit: GiB.
- count Integer
The count of a data disk.
- performance
Level String Worker node data disk performance level, when
category
valuescloud_essd
, the optional values arePL0
,PL1
,PL2
orPL3
, but the specific performance level is related to the disk capacity.
- category string
The type of the data disk. Valid values:
cloud_efficiency
andcloud_essd
.- size number
The size of a data disk, at least 40. Unit: GiB.
- count number
The count of a data disk.
- performance
Level string Worker node data disk performance level, when
category
valuescloud_essd
, the optional values arePL0
,PL1
,PL2
orPL3
, but the specific performance level is related to the disk capacity.
- category str
The type of the data disk. Valid values:
cloud_efficiency
andcloud_essd
.- size int
The size of a data disk, at least 40. Unit: GiB.
- count int
The count of a data disk.
- performance_
level str Worker node data disk performance level, when
category
valuescloud_essd
, the optional values arePL0
,PL1
,PL2
orPL3
, but the specific performance level is related to the disk capacity.
- category String
The type of the data disk. Valid values:
cloud_efficiency
andcloud_essd
.- size Number
The size of a data disk, at least 40. Unit: GiB.
- count Number
The count of a data disk.
- performance
Level String Worker node data disk performance level, when
category
valuescloud_essd
, the optional values arePL0
,PL1
,PL2
orPL3
, but the specific performance level is related to the disk capacity.
ClusterSubscriptionConfig
- 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
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
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
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
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_
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
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>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.