interface KubectlProviderAttributes
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EKS.KubectlProviderAttributes |
Java | software.amazon.awscdk.services.eks.KubectlProviderAttributes |
Python | aws_cdk.aws_eks.KubectlProviderAttributes |
TypeScript (source) | @aws-cdk/aws-eks » KubectlProviderAttributes |
Kubectl Provider Attributes.
Example
const handlerRole = iam.Role.fromRoleArn(this, 'HandlerRole', 'arn:aws:iam::123456789012:role/lambda-role');
const kubectlProvider = eks.KubectlProvider.fromKubectlProviderAttributes(this, 'KubectlProvider', {
functionArn: 'arn:aws:lambda:us-east-2:123456789012:function:my-function:1',
kubectlRoleArn: 'arn:aws:iam::123456789012:role/kubectl-role',
handlerRole,
});
const cluster = eks.Cluster.fromClusterAttributes(this, 'Cluster', {
clusterName: 'cluster',
kubectlProvider,
});
Properties
Name | Type | Description |
---|---|---|
function | string | The kubectl provider lambda arn. |
handler | IRole | The IAM execution role of the handler. |
kubectl | string | The IAM role to assume in order to perform kubectl operations against this cluster. |
functionArn
Type:
string
The kubectl provider lambda arn.
handlerRole
Type:
IRole
The IAM execution role of the handler.
This role must be able to assume kubectlRoleArn
kubectlRoleArn
Type:
string
The IAM role to assume in order to perform kubectl operations against this cluster.