Resource: aws_codegurureviewer_repository_association

Terraform resource for managing an AWS CodeGuru Reviewer Repository Association.

Example Usage

resource "aws_kms_key" "example" {}

resource "aws_codecommit_repository" "example" {
  repository_name = "example-repo"

  # ignore tag added by CodeGuru service upon association
  lifecycle {
    ignore_changes = [
      tags["codeguru-reviewer"]
    ]
  }
}

resource "aws_codegurureviewer_repository_association" "example" {
  repository {
    codecommit {
      name = aws_codecommit_repository.example.repository_name
    }
  }
  kms_key_details {
    encryption_option = "CUSTOMER_MANAGED_CMK"
    kms_key_id        = aws_kms_key.example.key_id
  }
}

Argument Reference

The following arguments are required:

The following arguments are optional:

repository

This configuration block supports the following:

bitbucket

codecommit

github_enterprise_server

s3_bucket

kms_key_details

This configuration block supports the following:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Timeouts

Configuration options: