Skip to content
v2.273.0

AwsAuthMapping Struct ​

AwsAuth mapping.

Example ​

ts
declare const cluster: eks.Cluster;
const adminUser = new iam.User(this, 'Admin');
cluster.awsAuth.addUserMapping(adminUser, { groups: [ 'system:masters' ]});

Properties ​

groupsstring[]groupstyping.List[str]groupsList<String>Groupsstring[]Groups*[]*stringrequired#
A list of groups within Kubernetes to which the role is mapped.
usernamestringusernamestrusernameStringUsernamestringUsername*string= By default, the user name is the…#
The user name within Kubernetes to map to the IAM role.
default

Default: By default, the user name is the ARN of the IAM role.