Skip to main content

CDK construct library that allows you enable an AWS EKS cluster for CloudWatch Container Insight

Project description

CDK EKS Container Insight

This construct configures the necessary dependencies and installs Amazon CloudWatch Container Insight on an EKS cluster managed by AWS CDK.

Using

In your CDK project, initialize a new Container Insight construct for your EKS cluster, like this:

const cluster = new Cluster(this, 'testCluster', {
  vpc: vpc,
  role: clusterRole,
  version: KubernetesVersion.V1_24,
  defaultCapacity: 1
});

new ContainerInsight(this, 'ContainerInsight', {
  cluster: cluster,
});

This will install and configure Container Insight on EC2 managed nodes in your cluster.

Testing

This construct adds a custom task to projen, so you can test a full deployment of an EKS cluster with Karpenter installed as specified in test/integ.karpenter.ts by running the following:

export CDK_DEFAULT_REGION=<aws region>
export CDK_DEFAULT_ACCOUNT=<account id>
npx projen test:deploy

As the above will create a cluster.

You can clean things up by deleting the deployment and the CDK test stack:

npx projen test:destroy

Security

See CONTRIBUTING for more information.

License

This project is licensed under the Apache-2.0 License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cdk-eks-container-insight-0.0.2.tar.gz (149.4 kB view hashes)

Uploaded Source

Built Distribution

cdk_eks_container_insight-0.0.2-py3-none-any.whl (148.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page