Resource: aws_codecommit_approval_rule_template_association

Associates a CodeCommit Approval Rule Template with a Repository.

Example Usage

resource "aws_codecommit_approval_rule_template_association" "example" {
  approval_rule_template_name = aws_codecommit_approval_rule_template.example.name
  repository_name             = aws_codecommit_repository.example.repository_name
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

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

Import

In Terraform v1.5.0 and later, use an import block to import CodeCommit approval rule template associations using the approval_rule_template_name and repository_name separated by a comma (,). For example:

import {
  to = aws_codecommit_approval_rule_template_association.example
  id = "approver-rule-for-example,MyExampleRepo"
}

Using terraform import, import CodeCommit approval rule template associations using the approval_rule_template_name and repository_name separated by a comma (,). For example:

% terraform import aws_codecommit_approval_rule_template_association.example approver-rule-for-example,MyExampleRepo