published on Thursday, Apr 2, 2026 by Volcengine
published on Thursday, Apr 2, 2026 by Volcengine
Users in an E-MapReduce (EMR) cluster are divided into regular users and system users. Regular users are added to the cluster manually through import or creation in the user management module. System users are built-in management users for each component created during cluster initialization and cannot be edited or deleted.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
const eMRClusterUserDemo = new volcenginecc.emr.ClusterUser("EMRClusterUserDemo", {
clusterId: "emr-xxxxxxxxxx",
userName: "emrclusteruserdemo",
password: "UserDemo1234",
userGroupNames: [
"users",
"ccapi",
],
description: "EMRClusterUserDemo",
});
import pulumi
import pulumi_volcenginecc as volcenginecc
e_mr_cluster_user_demo = volcenginecc.emr.ClusterUser("EMRClusterUserDemo",
cluster_id="emr-xxxxxxxxxx",
user_name="emrclusteruserdemo",
password="UserDemo1234",
user_group_names=[
"users",
"ccapi",
],
description="EMRClusterUserDemo")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/emr"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := emr.NewClusterUser(ctx, "EMRClusterUserDemo", &emr.ClusterUserArgs{
ClusterId: pulumi.String("emr-xxxxxxxxxx"),
UserName: pulumi.String("emrclusteruserdemo"),
Password: pulumi.String("UserDemo1234"),
UserGroupNames: pulumi.StringArray{
pulumi.String("users"),
pulumi.String("ccapi"),
},
Description: pulumi.String("EMRClusterUserDemo"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
return await Deployment.RunAsync(() =>
{
var eMRClusterUserDemo = new Volcenginecc.Emr.ClusterUser("EMRClusterUserDemo", new()
{
ClusterId = "emr-xxxxxxxxxx",
UserName = "emrclusteruserdemo",
Password = "UserDemo1234",
UserGroupNames = new[]
{
"users",
"ccapi",
},
Description = "EMRClusterUserDemo",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.volcengine.volcenginecc.emr.ClusterUser;
import com.volcengine.volcenginecc.emr.ClusterUserArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var eMRClusterUserDemo = new ClusterUser("eMRClusterUserDemo", ClusterUserArgs.builder()
.clusterId("emr-xxxxxxxxxx")
.userName("emrclusteruserdemo")
.password("UserDemo1234")
.userGroupNames(
"users",
"ccapi")
.description("EMRClusterUserDemo")
.build());
}
}
resources:
eMRClusterUserDemo:
type: volcenginecc:emr:ClusterUser
name: EMRClusterUserDemo
properties:
clusterId: emr-xxxxxxxxxx
userName: emrclusteruserdemo
password: UserDemo1234
userGroupNames:
- users
- ccapi
description: EMRClusterUserDemo
Create ClusterUser Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ClusterUser(name: string, args: ClusterUserArgs, opts?: CustomResourceOptions);@overload
def ClusterUser(resource_name: str,
args: ClusterUserArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ClusterUser(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
password: Optional[str] = None,
user_name: Optional[str] = None,
description: Optional[str] = None,
old_password: Optional[str] = None,
user_group_names: Optional[Sequence[str]] = None)func NewClusterUser(ctx *Context, name string, args ClusterUserArgs, opts ...ResourceOption) (*ClusterUser, error)public ClusterUser(string name, ClusterUserArgs args, CustomResourceOptions? opts = null)
public ClusterUser(String name, ClusterUserArgs args)
public ClusterUser(String name, ClusterUserArgs args, CustomResourceOptions options)
type: volcenginecc:emr:ClusterUser
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ClusterUserArgs
- 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 ClusterUserArgs
- 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 ClusterUserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterUserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClusterUserArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var clusterUserResource = new Volcenginecc.Emr.ClusterUser("clusterUserResource", new()
{
ClusterId = "string",
Password = "string",
UserName = "string",
Description = "string",
OldPassword = "string",
UserGroupNames = new[]
{
"string",
},
});
example, err := emr.NewClusterUser(ctx, "clusterUserResource", &emr.ClusterUserArgs{
ClusterId: pulumi.String("string"),
Password: pulumi.String("string"),
UserName: pulumi.String("string"),
Description: pulumi.String("string"),
OldPassword: pulumi.String("string"),
UserGroupNames: pulumi.StringArray{
pulumi.String("string"),
},
})
var clusterUserResource = new ClusterUser("clusterUserResource", ClusterUserArgs.builder()
.clusterId("string")
.password("string")
.userName("string")
.description("string")
.oldPassword("string")
.userGroupNames("string")
.build());
cluster_user_resource = volcenginecc.emr.ClusterUser("clusterUserResource",
cluster_id="string",
password="string",
user_name="string",
description="string",
old_password="string",
user_group_names=["string"])
const clusterUserResource = new volcenginecc.emr.ClusterUser("clusterUserResource", {
clusterId: "string",
password: "string",
userName: "string",
description: "string",
oldPassword: "string",
userGroupNames: ["string"],
});
type: volcenginecc:emr:ClusterUser
properties:
clusterId: string
description: string
oldPassword: string
password: string
userGroupNames:
- string
userName: string
ClusterUser Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ClusterUser resource accepts the following input properties:
- Cluster
Id string - Cluster ID.
- Password string
- New user login password. Password must be 8–20 characters long, support numbers, letters, -, _, and contain at least one number and one letter.
- User
Name string - Cluster username. Only lowercase letters are supported.
- Description string
- User group description.
- Old
Password string - Old user login password. Required when changing password.
- User
Group List<string>Names - User group name.
- Cluster
Id string - Cluster ID.
- Password string
- New user login password. Password must be 8–20 characters long, support numbers, letters, -, _, and contain at least one number and one letter.
- User
Name string - Cluster username. Only lowercase letters are supported.
- Description string
- User group description.
- Old
Password string - Old user login password. Required when changing password.
- User
Group []stringNames - User group name.
- cluster
Id String - Cluster ID.
- password String
- New user login password. Password must be 8–20 characters long, support numbers, letters, -, _, and contain at least one number and one letter.
- user
Name String - Cluster username. Only lowercase letters are supported.
- description String
- User group description.
- old
Password String - Old user login password. Required when changing password.
- user
Group List<String>Names - User group name.
- cluster
Id string - Cluster ID.
- password string
- New user login password. Password must be 8–20 characters long, support numbers, letters, -, _, and contain at least one number and one letter.
- user
Name string - Cluster username. Only lowercase letters are supported.
- description string
- User group description.
- old
Password string - Old user login password. Required when changing password.
- user
Group string[]Names - User group name.
- cluster_
id str - Cluster ID.
- password str
- New user login password. Password must be 8–20 characters long, support numbers, letters, -, _, and contain at least one number and one letter.
- user_
name str - Cluster username. Only lowercase letters are supported.
- description str
- User group description.
- old_
password str - Old user login password. Required when changing password.
- user_
group_ Sequence[str]names - User group name.
- cluster
Id String - Cluster ID.
- password String
- New user login password. Password must be 8–20 characters long, support numbers, letters, -, _, and contain at least one number and one letter.
- user
Name String - Cluster username. Only lowercase letters are supported.
- description String
- User group description.
- old
Password String - Old user login password. Required when changing password.
- user
Group List<String>Names - User group name.
Outputs
All input properties are implicitly available as output properties. Additionally, the ClusterUser resource produces the following output properties:
- Created
Time int - Creation time.
- Creator
Name string - Creator username.
- Id string
- The provider-assigned unique ID for this managed resource.
- Updated
Time int - Last updated time.
- Created
Time int - Creation time.
- Creator
Name string - Creator username.
- Id string
- The provider-assigned unique ID for this managed resource.
- Updated
Time int - Last updated time.
- created
Time Integer - Creation time.
- creator
Name String - Creator username.
- id String
- The provider-assigned unique ID for this managed resource.
- updated
Time Integer - Last updated time.
- created
Time number - Creation time.
- creator
Name string - Creator username.
- id string
- The provider-assigned unique ID for this managed resource.
- updated
Time number - Last updated time.
- created_
time int - Creation time.
- creator_
name str - Creator username.
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
time int - Last updated time.
- created
Time Number - Creation time.
- creator
Name String - Creator username.
- id String
- The provider-assigned unique ID for this managed resource.
- updated
Time Number - Last updated time.
Look up Existing ClusterUser Resource
Get an existing ClusterUser 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?: ClusterUserState, opts?: CustomResourceOptions): ClusterUser@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
created_time: Optional[int] = None,
creator_name: Optional[str] = None,
description: Optional[str] = None,
old_password: Optional[str] = None,
password: Optional[str] = None,
updated_time: Optional[int] = None,
user_group_names: Optional[Sequence[str]] = None,
user_name: Optional[str] = None) -> ClusterUserfunc GetClusterUser(ctx *Context, name string, id IDInput, state *ClusterUserState, opts ...ResourceOption) (*ClusterUser, error)public static ClusterUser Get(string name, Input<string> id, ClusterUserState? state, CustomResourceOptions? opts = null)public static ClusterUser get(String name, Output<String> id, ClusterUserState state, CustomResourceOptions options)resources: _: type: volcenginecc:emr:ClusterUser get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cluster
Id string - Cluster ID.
- Created
Time int - Creation time.
- Creator
Name string - Creator username.
- Description string
- User group description.
- Old
Password string - Old user login password. Required when changing password.
- Password string
- New user login password. Password must be 8–20 characters long, support numbers, letters, -, _, and contain at least one number and one letter.
- Updated
Time int - Last updated time.
- User
Group List<string>Names - User group name.
- User
Name string - Cluster username. Only lowercase letters are supported.
- Cluster
Id string - Cluster ID.
- Created
Time int - Creation time.
- Creator
Name string - Creator username.
- Description string
- User group description.
- Old
Password string - Old user login password. Required when changing password.
- Password string
- New user login password. Password must be 8–20 characters long, support numbers, letters, -, _, and contain at least one number and one letter.
- Updated
Time int - Last updated time.
- User
Group []stringNames - User group name.
- User
Name string - Cluster username. Only lowercase letters are supported.
- cluster
Id String - Cluster ID.
- created
Time Integer - Creation time.
- creator
Name String - Creator username.
- description String
- User group description.
- old
Password String - Old user login password. Required when changing password.
- password String
- New user login password. Password must be 8–20 characters long, support numbers, letters, -, _, and contain at least one number and one letter.
- updated
Time Integer - Last updated time.
- user
Group List<String>Names - User group name.
- user
Name String - Cluster username. Only lowercase letters are supported.
- cluster
Id string - Cluster ID.
- created
Time number - Creation time.
- creator
Name string - Creator username.
- description string
- User group description.
- old
Password string - Old user login password. Required when changing password.
- password string
- New user login password. Password must be 8–20 characters long, support numbers, letters, -, _, and contain at least one number and one letter.
- updated
Time number - Last updated time.
- user
Group string[]Names - User group name.
- user
Name string - Cluster username. Only lowercase letters are supported.
- cluster_
id str - Cluster ID.
- created_
time int - Creation time.
- creator_
name str - Creator username.
- description str
- User group description.
- old_
password str - Old user login password. Required when changing password.
- password str
- New user login password. Password must be 8–20 characters long, support numbers, letters, -, _, and contain at least one number and one letter.
- updated_
time int - Last updated time.
- user_
group_ Sequence[str]names - User group name.
- user_
name str - Cluster username. Only lowercase letters are supported.
- cluster
Id String - Cluster ID.
- created
Time Number - Creation time.
- creator
Name String - Creator username.
- description String
- User group description.
- old
Password String - Old user login password. Required when changing password.
- password String
- New user login password. Password must be 8–20 characters long, support numbers, letters, -, _, and contain at least one number and one letter.
- updated
Time Number - Last updated time.
- user
Group List<String>Names - User group name.
- user
Name String - Cluster username. Only lowercase letters are supported.
Import
$ pulumi import volcenginecc:emr/clusterUser:ClusterUser example "cluster_id|user_name"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
published on Thursday, Apr 2, 2026 by Volcengine
