Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
cdk-eks-container-insight
Advanced tools
CDK construct library that allows you enable an AWS EKS cluster for CloudWatch Container Insight
This construct configures the necessary dependencies and installs Amazon CloudWatch Container Insight on an EKS cluster managed by AWS CDK.
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,
kubectlLayer: new KubectlV24Layer(this, 'KubectlLayer'),
defaultCapacity: 1
});
new ContainerInsight(this, 'ContainerInsight', {
cluster: cluster,
});
This will install and configure Container Insight on EC2 managed nodes in your cluster.
This construct adds a custom task to projen, so you can test a full deployment
of an EKS cluster with CloudWatch Container Insight installed as specified in test/integ.containerinsight.ts
by running the
following:
export CDK_DEFAULT_REGION=<aws region>
export CDK_DEFAULT_ACCOUNT=<account id>
npx projen test:deploy
And you can valid the construct installation by login in CloudWatch console to
As the above will create a cluster. And the Container Insight will show your how cluster information in CloudWatch.
You can clean things up by deleting the deployment and the CDK test stack:
npx projen test:destroy
See CONTRIBUTING for more information.
This project is licensed under the Apache-2.0 License.
FAQs
CDK construct library that allows you enable an AWS EKS cluster for CloudWatch Container Insight
We found that cdk-eks-container-insight demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.