KubectlProviderAttributes Struct
Kubectl Provider Attributes.
Example
ts
const handlerRole = iam.Role.fromRoleArn(this, 'HandlerRole', 'arn:aws:iam::123456789012:role/lambda-role');
// get the serviceToken from the custom resource provider
const functionArn = lambda.Function.fromFunctionName(this, 'ProviderOnEventFunc', 'ProviderframeworkonEvent-XXX').functionArn;
const kubectlProvider = eks.KubectlProvider.fromKubectlProviderAttributes(this, 'KubectlProvider', {
functionArn,
kubectlRoleArn: 'arn:aws:iam::123456789012:role/kubectl-role',
handlerRole,
});
const cluster = eks.Cluster.fromClusterAttributes(this, 'Cluster', {
clusterName: 'cluster',
kubectlProvider,
});
Properties
The custom resource provider's service token.
The IAM execution role of the handler.
This role must be able to assume kubectlRoleArn
kubectlRoleArnstringkubectl_role_arnstrkubectlRoleArnStringKubectlRoleArnstringKubectlRoleArn*stringrequired#The IAM role to assume in order to perform kubectl operations against this cluster.