aws-cdk-lib.aws_eks.AwsAuthMapping

interface AwsAuthMapping

LanguageType name
.NETAmazon.CDK.AWS.EKS.AwsAuthMapping
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awseks#AwsAuthMapping
Javasoftware.amazon.awscdk.services.eks.AwsAuthMapping
Pythonaws_cdk.aws_eks.AwsAuthMapping
TypeScript (source)aws-cdk-lib » aws_eks » AwsAuthMapping

AwsAuth mapping.

Example

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

Properties

NameTypeDescription
groupsstring[]A list of groups within Kubernetes to which the role is mapped.
username?stringThe user name within Kubernetes to map to the IAM role.

groups

Type: string[]

A list of groups within Kubernetes to which the role is mapped.

See also: https://kubernetes.io/docs/reference/access-authn-authz/rbac/#default-roles-and-role-bindings


username?

Type: string (optional, default: By default, the user name is the ARN of the IAM role.)

The user name within Kubernetes to map to the IAM role.