Creates a CodeCommit repository and a trigger that responds to all events, sending notifications to an SNS topic.

Terraform Template

resource "aws_codecommit_repository" "test" {
  repository_name = "test"
}

resource "aws_codecommit_trigger" "test" {
  repository_name = aws_codecommit_repository.test.repository_name

  trigger {
    destination_arn = "aws_sns_topic.test.arn"
    events = ["all"]
    name = "all"
  }
}