AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

KubectlProvider

Implementation of Kubectl Lambda.

Import

import { KubectlProvider } from 'aws-cdk-lib/aws-eks';

Or use the module namespace:

import * as eks from 'aws-cdk-lib/aws-eks';
// eks.KubectlProvider

Properties

Configuration passed to the constructor as KubectlProviderProps.

clusterRequired
ICluster

The cluster to control.

removalPolicyOptional
RemovalPolicy

The removal policy applied to the custom resource that provides kubectl. The removal policy controls what happens to the resource if it stops being managed by CloudFormation. This can happen in one of three situations: - The resource is removed from the template, so CloudFormation stops managing it - A change to the resource is made that requires it to be replaced, so CloudFormation stops managing it - The stack is deleted, so CloudFormation stops managing all resources in it

Default: RemovalPolicy.DESTROY

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter