Cluster
Provides a EMR Cluster resource. With this you can create, read, and release EMR Cluster.
NOTE: Available in 1.57.0+.
Create a Cluster Resource
new Cluster(name: string, args: ClusterArgs, opts?: CustomResourceOptions);def Cluster(resource_name, opts=None, bootstrap_actions=None, charge_type=None, cluster_type=None, deposit_type=None, eas_enable=None, emr_ver=None, high_availability_enable=None, host_groups=None, is_open_public_ip=None, key_pair_name=None, master_pwd=None, name=None, option_software_lists=None, related_cluster_id=None, security_group_id=None, ssh_enable=None, tags=None, use_local_metadb=None, user_defined_emr_ecs_role=None, vswitch_id=None, zone_id=None, __props__=None);func NewCluster(ctx *Context, name string, args ClusterArgs, opts ...ResourceOption) (*Cluster, error)public Cluster(string name, ClusterArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args 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.
Cluster Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Cluster resource accepts the following input properties:
- Cluster
Type string EMR Cluster Type, e.g. HADOOP, KAFKA, DRUID, GATEWAY etc. You can find all valid EMR cluster type in emr web console. Supported ‘GATEWAY’ available in 1.61.0+.
- Emr
Ver string EMR Version, e.g. EMR-3.22.0. You can find the all valid EMR Version in emr web console.
- Zone
Id string Zone ID, e.g. cn-huhehaote-a
- Bootstrap
Actions List<Pulumi.Ali Cloud. Emr. Inputs. Cluster Bootstrap Action Args> - Charge
Type string Charge Type for this group of hosts: PostPaid or PrePaid. If this is not specified, charge type will follow global charge_type value.
- Deposit
Type string Cluster deposit type, HALF_MANAGED or FULL_MANAGED.
- Eas
Enable bool High security cluster (true) or not. Default value is false.
- High
Availability boolEnable High Available for HDFS and YARN. If this is set true, MASTER group must have two nodes.
- Host
Groups List<Pulumi.Ali Cloud. Emr. Inputs. Cluster Host Group Args> Groups of Host, You can specify MASTER as a group, CORE as a group (just like the above example).
- Is
Open boolPublic Ip - Key
Pair stringName Ssh key pair.
- Master
Pwd string Master ssh password.
- Name string
bootstrap action name.
- Option
Software List<string>Lists Optional software list.
- string
This specify the related cluster id, if this cluster is a Gateway.
- Security
Group stringId Security Group ID for Cluster, you can also specify this key for each host group.
- Ssh
Enable bool If this is set true, we can ssh into cluster. Default value is false.
- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Use
Local boolMetadb Use local metadb. Default is false.
- User
Defined stringEmr Ecs Role 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.
- Vswitch
Id string Global vswitch id, you can also specify it in host group.
- Cluster
Type string EMR Cluster Type, e.g. HADOOP, KAFKA, DRUID, GATEWAY etc. You can find all valid EMR cluster type in emr web console. Supported ‘GATEWAY’ available in 1.61.0+.
- Emr
Ver string EMR Version, e.g. EMR-3.22.0. You can find the all valid EMR Version in emr web console.
- Zone
Id string Zone ID, e.g. cn-huhehaote-a
- Bootstrap
Actions []ClusterBootstrap Action - Charge
Type string Charge Type for this group of hosts: PostPaid or PrePaid. If this is not specified, charge type will follow global charge_type value.
- Deposit
Type string Cluster deposit type, HALF_MANAGED or FULL_MANAGED.
- Eas
Enable bool High security cluster (true) or not. Default value is false.
- High
Availability boolEnable High Available for HDFS and YARN. If this is set true, MASTER group must have two nodes.
- Host
Groups []ClusterHost Group Groups of Host, You can specify MASTER as a group, CORE as a group (just like the above example).
- Is
Open boolPublic Ip - Key
Pair stringName Ssh key pair.
- Master
Pwd string Master ssh password.
- Name string
bootstrap action name.
- Option
Software []stringLists Optional software list.
- string
This specify the related cluster id, if this cluster is a Gateway.
- Security
Group stringId Security Group ID for Cluster, you can also specify this key for each host group.
- Ssh
Enable bool If this is set true, we can ssh into cluster. Default value is false.
- map[string]interface{}
A mapping of tags to assign to the resource.
- Use
Local boolMetadb Use local metadb. Default is false.
- User
Defined stringEmr Ecs Role 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.
- Vswitch
Id string Global vswitch id, you can also specify it in host group.
- cluster
Type string EMR Cluster Type, e.g. HADOOP, KAFKA, DRUID, GATEWAY etc. You can find all valid EMR cluster type in emr web console. Supported ‘GATEWAY’ available in 1.61.0+.
- emr
Ver string EMR Version, e.g. EMR-3.22.0. You can find the all valid EMR Version in emr web console.
- zone
Id string Zone ID, e.g. cn-huhehaote-a
- bootstrap
Actions ClusterBootstrap Action[] - charge
Type string Charge Type for this group of hosts: PostPaid or PrePaid. If this is not specified, charge type will follow global charge_type value.
- deposit
Type string Cluster deposit type, HALF_MANAGED or FULL_MANAGED.
- eas
Enable boolean High security cluster (true) or not. Default value is false.
- high
Availability booleanEnable High Available for HDFS and YARN. If this is set true, MASTER group must have two nodes.
- host
Groups ClusterHost Group[] Groups of Host, You can specify MASTER as a group, CORE as a group (just like the above example).
- is
Open booleanPublic Ip - key
Pair stringName Ssh key pair.
- master
Pwd string Master ssh password.
- name string
bootstrap action name.
- option
Software string[]Lists Optional software list.
- string
This specify the related cluster id, if this cluster is a Gateway.
- security
Group stringId Security Group ID for Cluster, you can also specify this key for each host group.
- ssh
Enable boolean If this is set true, we can ssh into cluster. Default value is false.
- {[key: string]: any}
A mapping of tags to assign to the resource.
- use
Local booleanMetadb Use local metadb. Default is false.
- user
Defined stringEmr Ecs Role 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.
- vswitch
Id string Global vswitch id, you can also specify it in host group.
- cluster_
type str EMR Cluster Type, e.g. HADOOP, KAFKA, DRUID, GATEWAY etc. You can find all valid EMR cluster type in emr web console. Supported ‘GATEWAY’ available in 1.61.0+.
- emr_
ver str EMR Version, e.g. EMR-3.22.0. You can find the all valid EMR Version in emr web console.
- zone_
id str Zone ID, e.g. cn-huhehaote-a
- bootstrap_
actions List[ClusterBootstrap Action] - charge_
type str Charge Type for this group of hosts: PostPaid or PrePaid. If this is not specified, charge type will follow global charge_type value.
- deposit_
type str Cluster deposit type, HALF_MANAGED or FULL_MANAGED.
- eas_
enable bool High security cluster (true) or not. Default value is false.
- high_
availability_ boolenable High Available for HDFS and YARN. If this is set true, MASTER group must have two nodes.
- host_
groups List[ClusterHost Group] Groups of Host, You can specify MASTER as a group, CORE as a group (just like the above example).
- is_
open_ boolpublic_ ip - key_
pair_ strname Ssh key pair.
- master_
pwd str Master ssh password.
- name str
bootstrap action name.
- option_
software_ List[str]lists Optional software list.
- str
This specify the related cluster id, if this cluster is a Gateway.
- security_
group_ strid Security Group ID for Cluster, you can also specify this key for each host group.
- ssh_
enable bool If this is set true, we can ssh into cluster. Default value is false.
- Dict[str, Any]
A mapping of tags to assign to the resource.
- use_
local_ boolmetadb Use local metadb. Default is false.
- user_
defined_ stremr_ ecs_ role 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.
- vswitch_
id str Global vswitch id, you can also specify it in host group.
Outputs
All input properties are implicitly available as output properties. Additionally, the Cluster resource produces the following output properties:
Look up an 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): Clusterstatic get(resource_name, id, opts=None, bootstrap_actions=None, charge_type=None, cluster_type=None, deposit_type=None, eas_enable=None, emr_ver=None, high_availability_enable=None, host_groups=None, is_open_public_ip=None, key_pair_name=None, master_pwd=None, name=None, option_software_lists=None, related_cluster_id=None, security_group_id=None, ssh_enable=None, tags=None, use_local_metadb=None, user_defined_emr_ecs_role=None, vswitch_id=None, zone_id=None, __props__=None);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)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Bootstrap
Actions List<Pulumi.Ali Cloud. Emr. Inputs. Cluster Bootstrap Action Args> - Charge
Type string Charge Type for this group of hosts: PostPaid or PrePaid. If this is not specified, charge type will follow global charge_type value.
- Cluster
Type string EMR Cluster Type, e.g. HADOOP, KAFKA, DRUID, GATEWAY etc. You can find all valid EMR cluster type in emr web console. Supported ‘GATEWAY’ available in 1.61.0+.
- Deposit
Type string Cluster deposit type, HALF_MANAGED or FULL_MANAGED.
- Eas
Enable bool High security cluster (true) or not. Default value is false.
- Emr
Ver string EMR Version, e.g. EMR-3.22.0. You can find the all valid EMR Version in emr web console.
- High
Availability boolEnable High Available for HDFS and YARN. If this is set true, MASTER group must have two nodes.
- Host
Groups List<Pulumi.Ali Cloud. Emr. Inputs. Cluster Host Group Args> Groups of Host, You can specify MASTER as a group, CORE as a group (just like the above example).
- Is
Open boolPublic Ip - Key
Pair stringName Ssh key pair.
- Master
Pwd string Master ssh password.
- Name string
bootstrap action name.
- Option
Software List<string>Lists Optional software list.
- string
This specify the related cluster id, if this cluster is a Gateway.
- Security
Group stringId Security Group ID for Cluster, you can also specify this key for each host group.
- Ssh
Enable bool If this is set true, we can ssh into cluster. Default value is false.
- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Use
Local boolMetadb Use local metadb. Default is false.
- User
Defined stringEmr Ecs Role 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.
- Vswitch
Id string Global vswitch id, you can also specify it in host group.
- Zone
Id string Zone ID, e.g. cn-huhehaote-a
- Bootstrap
Actions []ClusterBootstrap Action - Charge
Type string Charge Type for this group of hosts: PostPaid or PrePaid. If this is not specified, charge type will follow global charge_type value.
- Cluster
Type string EMR Cluster Type, e.g. HADOOP, KAFKA, DRUID, GATEWAY etc. You can find all valid EMR cluster type in emr web console. Supported ‘GATEWAY’ available in 1.61.0+.
- Deposit
Type string Cluster deposit type, HALF_MANAGED or FULL_MANAGED.
- Eas
Enable bool High security cluster (true) or not. Default value is false.
- Emr
Ver string EMR Version, e.g. EMR-3.22.0. You can find the all valid EMR Version in emr web console.
- High
Availability boolEnable High Available for HDFS and YARN. If this is set true, MASTER group must have two nodes.
- Host
Groups []ClusterHost Group Groups of Host, You can specify MASTER as a group, CORE as a group (just like the above example).
- Is
Open boolPublic Ip - Key
Pair stringName Ssh key pair.
- Master
Pwd string Master ssh password.
- Name string
bootstrap action name.
- Option
Software []stringLists Optional software list.
- string
This specify the related cluster id, if this cluster is a Gateway.
- Security
Group stringId Security Group ID for Cluster, you can also specify this key for each host group.
- Ssh
Enable bool If this is set true, we can ssh into cluster. Default value is false.
- map[string]interface{}
A mapping of tags to assign to the resource.
- Use
Local boolMetadb Use local metadb. Default is false.
- User
Defined stringEmr Ecs Role 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.
- Vswitch
Id string Global vswitch id, you can also specify it in host group.
- Zone
Id string Zone ID, e.g. cn-huhehaote-a
- bootstrap
Actions ClusterBootstrap Action[] - charge
Type string Charge Type for this group of hosts: PostPaid or PrePaid. If this is not specified, charge type will follow global charge_type value.
- cluster
Type string EMR Cluster Type, e.g. HADOOP, KAFKA, DRUID, GATEWAY etc. You can find all valid EMR cluster type in emr web console. Supported ‘GATEWAY’ available in 1.61.0+.
- deposit
Type string Cluster deposit type, HALF_MANAGED or FULL_MANAGED.
- eas
Enable boolean High security cluster (true) or not. Default value is false.
- emr
Ver string EMR Version, e.g. EMR-3.22.0. You can find the all valid EMR Version in emr web console.
- high
Availability booleanEnable High Available for HDFS and YARN. If this is set true, MASTER group must have two nodes.
- host
Groups ClusterHost Group[] Groups of Host, You can specify MASTER as a group, CORE as a group (just like the above example).
- is
Open booleanPublic Ip - key
Pair stringName Ssh key pair.
- master
Pwd string Master ssh password.
- name string
bootstrap action name.
- option
Software string[]Lists Optional software list.
- string
This specify the related cluster id, if this cluster is a Gateway.
- security
Group stringId Security Group ID for Cluster, you can also specify this key for each host group.
- ssh
Enable boolean If this is set true, we can ssh into cluster. Default value is false.
- {[key: string]: any}
A mapping of tags to assign to the resource.
- use
Local booleanMetadb Use local metadb. Default is false.
- user
Defined stringEmr Ecs Role 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.
- vswitch
Id string Global vswitch id, you can also specify it in host group.
- zone
Id string Zone ID, e.g. cn-huhehaote-a
- bootstrap_
actions List[ClusterBootstrap Action] - charge_
type str Charge Type for this group of hosts: PostPaid or PrePaid. If this is not specified, charge type will follow global charge_type value.
- cluster_
type str EMR Cluster Type, e.g. HADOOP, KAFKA, DRUID, GATEWAY etc. You can find all valid EMR cluster type in emr web console. Supported ‘GATEWAY’ available in 1.61.0+.
- deposit_
type str Cluster deposit type, HALF_MANAGED or FULL_MANAGED.
- eas_
enable bool High security cluster (true) or not. Default value is false.
- emr_
ver str EMR Version, e.g. EMR-3.22.0. You can find the all valid EMR Version in emr web console.
- high_
availability_ boolenable High Available for HDFS and YARN. If this is set true, MASTER group must have two nodes.
- host_
groups List[ClusterHost Group] Groups of Host, You can specify MASTER as a group, CORE as a group (just like the above example).
- is_
open_ boolpublic_ ip - key_
pair_ strname Ssh key pair.
- master_
pwd str Master ssh password.
- name str
bootstrap action name.
- option_
software_ List[str]lists Optional software list.
- str
This specify the related cluster id, if this cluster is a Gateway.
- security_
group_ strid Security Group ID for Cluster, you can also specify this key for each host group.
- ssh_
enable bool If this is set true, we can ssh into cluster. Default value is false.
- Dict[str, Any]
A mapping of tags to assign to the resource.
- use_
local_ boolmetadb Use local metadb. Default is false.
- user_
defined_ stremr_ ecs_ role 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.
- vswitch_
id str Global vswitch id, you can also specify it in host group.
- zone_
id str Zone ID, e.g. cn-huhehaote-a
Supporting Types
ClusterBootstrapAction
ClusterHostGroup
- Auto
Renew bool Auto renew for prepaid, true of false. Default is false.
- Charge
Type string Charge Type for this group of hosts: PostPaid or PrePaid. If this is not specified, charge type will follow global charge_type value.
- Disk
Capacity string Data disk capacity.
- Disk
Count string Data disk count.
- Disk
Type string Data disk type. Supported value: cloud,cloud_efficiency,cloud_ssd,local_disk,cloud_essd.
- Gpu
Driver string - Host
Group stringName host group name.
- Host
Group stringType host group type, supported value: MASTER, CORE or TASK, supported ‘GATEWAY’ available in 1.61.0+.
- Instance
List string Instance list for cluster scale down. This value follows the json format, e.g. [“instance_id1”,“instance_id2”]. escape character for “ is \“.
- Instance
Type string Host Ecs instance type.
- Node
Count string Host number in this group.
- Period int
If charge type is PrePaid, this should be specified, unit is month. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36.
- Sys
Disk stringCapacity System disk capacity.
- Sys
Disk stringType System disk type. Supported value: cloud,cloud_efficiency,cloud_ssd,cloud_essd.
- Auto
Renew bool Auto renew for prepaid, true of false. Default is false.
- Charge
Type string Charge Type for this group of hosts: PostPaid or PrePaid. If this is not specified, charge type will follow global charge_type value.
- Disk
Capacity string Data disk capacity.
- Disk
Count string Data disk count.
- Disk
Type string Data disk type. Supported value: cloud,cloud_efficiency,cloud_ssd,local_disk,cloud_essd.
- Gpu
Driver string - Host
Group stringName host group name.
- Host
Group stringType host group type, supported value: MASTER, CORE or TASK, supported ‘GATEWAY’ available in 1.61.0+.
- Instance
List string Instance list for cluster scale down. This value follows the json format, e.g. [“instance_id1”,“instance_id2”]. escape character for “ is \“.
- Instance
Type string Host Ecs instance type.
- Node
Count string Host number in this group.
- Period int
If charge type is PrePaid, this should be specified, unit is month. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36.
- Sys
Disk stringCapacity System disk capacity.
- Sys
Disk stringType System disk type. Supported value: cloud,cloud_efficiency,cloud_ssd,cloud_essd.
- auto
Renew boolean Auto renew for prepaid, true of false. Default is false.
- charge
Type string Charge Type for this group of hosts: PostPaid or PrePaid. If this is not specified, charge type will follow global charge_type value.
- disk
Capacity string Data disk capacity.
- disk
Count string Data disk count.
- disk
Type string Data disk type. Supported value: cloud,cloud_efficiency,cloud_ssd,local_disk,cloud_essd.
- gpu
Driver string - host
Group stringName host group name.
- host
Group stringType host group type, supported value: MASTER, CORE or TASK, supported ‘GATEWAY’ available in 1.61.0+.
- instance
List string Instance list for cluster scale down. This value follows the json format, e.g. [“instance_id1”,“instance_id2”]. escape character for “ is \“.
- instance
Type string Host Ecs instance type.
- node
Count string Host number in this group.
- period number
If charge type is PrePaid, this should be specified, unit is month. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36.
- sys
Disk stringCapacity System disk capacity.
- sys
Disk stringType System disk type. Supported value: cloud,cloud_efficiency,cloud_ssd,cloud_essd.
- auto_
renew bool Auto renew for prepaid, true of false. Default is false.
- charge_
type str Charge Type for this group of hosts: PostPaid or PrePaid. If this is not specified, charge type will follow global charge_type value.
- disk
Capacity str Data disk capacity.
- disk
Count str Data disk count.
- disk_
type str Data disk type. Supported value: cloud,cloud_efficiency,cloud_ssd,local_disk,cloud_essd.
- gpu
Driver str - host
Group strName host group name.
- host
Group strType host group type, supported value: MASTER, CORE or TASK, supported ‘GATEWAY’ available in 1.61.0+.
- instance
List str Instance list for cluster scale down. This value follows the json format, e.g. [“instance_id1”,“instance_id2”]. escape character for “ is \“.
- instance_
type str Host Ecs instance type.
- node_
count str Host number in this group.
- period float
If charge type is PrePaid, this should be specified, unit is month. Supported value: 1、2、3、4、5、6、7、8、9、12、24、36.
- sys
Disk strCapacity System disk capacity.
- sys
Disk strType System disk type. Supported value: cloud,cloud_efficiency,cloud_ssd,cloud_essd.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.