Skip to content

chainguard-dev/terraform-aws-chainguard-account-association

Repository files navigation

Configure Chainguard service access.

Terraform module to connect Chainguard to your AWS account.

This module is needed to leverage certain service integrations from Chainguard.

Usage

This module binds a Chainguard IAM group to a AWS account.

module "chainguard-account-association" {
  source = "chainguard-dev/chainguard-account-association/aws"

  group_ids = [var.group_id]
  account   = var.account
}

resource "chainguard_account_associations" "example" {
  name  = "example"
  group = var.group_id

  amazon {
    account = var.account
  }
}

How does it work?

Chainguard has an OIDC identity provider. This module configures your AWS acccount to recognize that OIDC identity provider and allows certain tokens to bind to certain IAM roles.

Requirements

Name Version
aws >= 2.7.0

Providers

Name Version
aws >= 2.7.0

Modules

No modules.

Resources

Name Type
aws_iam_openid_connect_provider.chainguard_idp resource
aws_iam_role.canary_role resource
aws_iam_role.catalog-syncer resource
aws_iam_role_policy_attachment.catalog-syncer-ecr-push resource

Inputs

Name Description Type Default Required
account The AWS account ID to which we are binding the Chainguard groups. string n/a yes
environment Domain of the Chainguard environment string "enforce.dev" no
group_ids Chainguard IAM group IDs to bind your AWS account to. list(string) n/a yes

Outputs

No outputs.

About

Terraform module to connect Chainguard Enforce to your AWS Account

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages