Skip to content

AWS Codecommit is not associated with an approval rule

Description

Associating AWS Codecommit with an approval rule ensures that code changes are reviewed by other team members before being merged into the main branch of a repository. This can help identify problems or issues with the code before it is deployed, and can also serve as a means of knowledge sharing among team members.

Code Example

go
resource "aws_codecommit_repository" "pass" {
  repository_name = "MyTestRepository"
  description     = "This is the Sample App Repository"
}

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

Remediation

Terraform

Rule Details

FieldValue
IDIAC-0471
SeverityLOW
IaC TypeTerraform
FrameworksTerraform
Checkov IDCKV2_AWS_37

References