packaged by Chainguard
Contact our team to test out this image for free. Please also indicate any other images you would like to evaluate.
CloudWatch controller is an AWS Controllers for Kubernetes (ACK) service controller for Amazon CloudWatch dashboards, metric alarms, and metric streams.
Chainguard Containers are regularly-updated, secure-by-default container images.
For those with access, this container image is available on cgr.dev:
Be sure to replace the ORGANIZATION placeholder with the name used for your organization's private repository within the Chainguard Registry.
Chainguard's aws-cloudwatch-controller image is a minimal, Wolfi-based container image for the AWS Controllers for Kubernetes (ACK) service controller managing Amazon CloudWatch dashboards, metric alarms, and metric streams. It is comparable to the cloudwatch-controller image published by AWS in functionality: the controller binary is available at /bin/controller, the working directory is / so the Helm chart's relative ./bin/controller command resolves, and the image runs as the nonroot user 1000. The upstream image keeps the project's LICENSE and ATTRIBUTION.md next to the binary in /usr/bin, while this image ships them at the root of the filesystem.
The controller is deployed with the official ACK (AWS Controllers for Kubernetes) Helm chart, oci://public.ecr.aws/aws-controllers-k8s/cloudwatch-chart, published in the ACK registry within the Amazon ECR Public Gallery. Installing it creates the controller Deployment, the custom resource definitions, the service account, and the RBAC it needs.
The chart is released in lockstep with the controller, so each chart version deploys the controller of the same version. List the versions available with:
The controller exits at startup until it has AWS credentials, so give it an IAM identity before installing. On Amazon EKS, annotate the chart's service account with an IAM role that can manage CloudWatch, as described in the ACK guide to configuring IAM permissions. Outside EKS, set aws.credentials.secretName to a Secret holding an AWS shared credentials file instead. Create a values.yaml pointing the chart at this image and that role, replacing AWS_ACCOUNT_ID and IAM_ROLE_NAME with your own:
Then install the chart:
Confirm the controller came up and registered its custom resource definitions:
Once running, the controller reconciles CloudWatch custom resources. The chart installs CRDs for three CloudWatch kinds: Dashboard, MetricAlarm, and MetricStream, alongside the two shared ACK kinds FieldExport and IAMRoleSelector. For example, to create an alarm that fires when one EC2 instance's average CPU utilization reaches 90% over five minutes, replacing INSTANCE_ID with the instance's ID:
The controller writes the result back onto the resource, so a successful reconcile is visible in its status:
An alarm that already exists in CloudWatch can be brought under the controller instead of recreated. Set services.k8s.aws/adoption-policy to adopt and name the alarm in the services.k8s.aws/adoption-fields annotation, and the controller reads the alarm and fills in the custom resource's spec from it:
Dashboards and metric streams are adopted the same way, by dashboardName or name. Their custom resources must still set the other fields the CRD requires, dashboardBody for a dashboard and outputFormat for a metric stream.
The chart's deletionPolicy decides what happens to the AWS resource when its custom resource is deleted. It defaults to delete, which removes the alarm, dashboard, or metric stream along with the Kubernetes object. Set it to retain when the Kubernetes objects are managed by a pipeline that may recreate or prune them, so that deleting a manifest cannot remove an alarm that an on-call rotation still depends on:
Apply it with the same chart. helm upgrade --install both creates the release and updates an existing one, so the same command works whether or not the controller is already deployed:
Under retain the controller clears its finalizer and leaves the AWS resource in place. A single resource can opt into the same behavior with the services.k8s.aws/deletion-policy: retain annotation, which takes precedence over the chart setting. leaderElection is worth enabling alongside it whenever the Deployment runs more than one replica, so only one controller reconciles at a time.
To see every value the chart accepts, including the resource-specific reconcile settings:
Chainguard's free tier of Starter container images are built with Wolfi, our minimal Linux undistro.
All other Chainguard Containers are built with Chainguard OS, Chainguard's minimal Linux operating system designed to produce container images that meet the requirements of a more secure software supply chain.
The main features of Chainguard Containers include:
For cases where you need container images with shells and package managers to build or debug, most Chainguard Containers come paired with a development, or -dev, variant.
In all other cases, including Chainguard Containers tagged as :latest or with a specific version number, the container images include only an open-source application and its runtime dependencies. These minimal container images typically do not contain a shell or package manager.
Although the -dev container image variants have similar security features as their more minimal versions, they include additional software that is typically not necessary in production environments. We recommend using multi-stage builds to copy artifacts from the -dev variant into a more minimal production image.
To improve security, Chainguard Containers include only essential dependencies. Need more packages? Chainguard customers can use Custom Assembly to add packages, either through the Console, chainctl, or API.
To use Custom Assembly in the Chainguard Console: navigate to the image you'd like to customize in your Organization's list of images, and click on the Customize image button at the top of the page.
Refer to our Chainguard Containers documentation on Chainguard Academy. Chainguard also offers VMs and Libraries — contact us for access.
This software listing is packaged by Chainguard. The trademarks set forth in this offering are owned by their respective companies, and use of them does not imply any affiliation, sponsorship, or endorsement by such companies.
Chainguard's container images contain software packages that are direct or transitive dependencies. The following licenses were found in the "latest" tag of this image:
For a complete list of licenses, please refer to this Image's SBOM.
Software license agreementChainguard Containers are SLSA Level 3 compliant with detailed metadata and documentation about how it was built. We generate build provenance and a Software Bill of Materials (SBOM) for each release, with complete visibility into the software supply chain.
SLSA compliance at ChainguardThis image helps reduce time and effort in establishing PCI DSS 4.0 compliance with low-to-no CVEs.
PCI DSS at ChainguardA FIPS validated version of this image is available for FedRAMP compliance. STIG is included with FIPS image.