Skip to content

chainguard-dev/platform-examples

Repository files navigation

Chainguard Platform Examples

This repo holds a number of example apps demonstrating integrations with Chainguard platform APIs, and various Chainguard Events.

  • GCP Image Copier - copies images to Google Artifact Registry when an image is pushed to cgr.dev
  • ECR Image Copier - copies images to Amazon Elastic Container Registry when an image is pushed to cgr.dev
  • AWS Auth Example - demonstrates configuration of an AWS assumable Chainguard identity, as well as calling the Chainguard API from a Lambda function
  • Tag History Example - demonstrates how to use the Chainguard API to track tag history for images in a registry
  • Image Diff Example - demonstrates how to use the Chainguard API to compare images in a registry

Note

These examples are intended to be used as a reference for building your own Chainguard platform integrations. They can be used directly as-is, but are not intended to be production-ready and may experience breaking changes or be removed entirely. You can reference these examples in your own Terraform configs, but we recommend that you pin a specific commit to avoid unexpected changes. For example:

module "image-copy" {
  source = "github.com/chainguard-dev/platform-examples/image-copy-gcp/iac?ref=a1b2c3d4"

  project_id = "..."
  group      = "..."
}