Creates an AWS CodeCommit repository with a specified name, description, and an AWS KMS Customer Managed Key for encryption.

Terraform Template

resource "aws_codecommit_repository" "test" {
  description = "This is the Sample App Repository"
  kms_key_id = aws_kms_key.test.arn
  repository_name = "MyTestRepository"
}

resource "aws_kms_key" "test" {
  deletion_window_in_days = 7
  description = "test"
}