Skip to content

Repository files navigation

terraform-infra-common

Static Badge

A collection of common infrastructure modules that encapsulate Cloud Run and GCP patterns.

Modules

See MODULES.md for a summary of all available modules.

Go helpers

The httpmetrics package provides HTTP instrumentation and opt-in serving-revision metadata for HTTP and gRPC services.

The memusage package logs Linux process and container memory high-water marks, including peaks between monitoring samples.

Usage

To use components in this library, you must provide the project in a provider.google resource in your top-level main.tf:

provider "google" {
  project = var.project
}

Resource labels

Many modules add a terraform-module label and a label named after the module. Modules differ in which other labels they apply and whether they accept a labels map. Check the module's variables and resources before relying on a specific label.

When a module requires a team input, provide the owning team. Some modules also add a squad label with that value for compatibility. The product input and its default also vary by module.

Submitting Changes

These modules are canonically located within a private Chainguard repository, and are continuously pushed from there to this repository.

If you would like to submit a PR, please do make one against this repository. After the review process, someone at Chainguard will merge it into our internal repository, and the change will then be pushed here.

About

A repository containing a collection of "glue" modules for encapsulating common Cloud Run patterns.

Resources

Security policy

Stars

29 stars

Watchers

3 watching

Forks

Releases

Used by

Contributors

Languages