Terraform module to connect Chainguard to your Google Cloud Platform project.
This module is needed to leverage certain service integrations from Chainguard.
This module binds a Chainguard IAM group to a GCP project.
data "google_project" "project" {
project_id = var.project_id # You can omit this to use provider-defaults
}
module "chainguard-account-association" {
source = "chainguard-dev/chainguard-account-association/gcp"
group_ids = [var.group_id]
project_id = data.google_project.project.project_id
}
resource "chainguard_account_associations" "example" {
name = "example"
group = var.group_id
google {
project_id = data.google_project.project.project_id
project_number = data.google_project.project.number
}
}
Chainguard has an OIDC identity provider. This module configures your GCP project to recognize that OIDC identity provider and allows certain tokens to bind to certain IAM roles.
No requirements.
Name | Version |
---|---|
n/a | |
google-beta | n/a |
No modules.
Name | Description | Type | Default | Required |
---|---|---|---|---|
environment | Domain name of your Chainguard environment | string |
"enforce.dev" |
no |
group_ids | Chainguard IAM group IDs to bind your GCP project to. | list(string) |
n/a | yes |
project_id | GCP Project ID | string |
n/a | yes |
Name | Description |
---|---|
provider_id | GCP identity provider pool configured for Chainguard. |