Creates an AWS CodeCommit approval rule template specifying required approvals for changes to the master branch.

Terraform Template

resource "aws_codecommit_approval_rule_template" "example" {
  content = jsonencode({
 Version = "2018-11-08"
 DestinationReferences = ["refs/heads/master"]
 Statements = [{
 Type = "Approvers"
 NumberOfApprovalsNeeded = 2
 ApprovalPoolMembers = ["arn:aws:sts::123456789012:assumed-role/CodeCommitReview/*"]
 }]
 })
  description = "This is an example approval rule template"
  name = "MyExampleApprovalRuleTemplate"
}