Skip to content

Commit 09fe378

Browse files
committed
chore: Updated README.md
1 parent e5c3979 commit 09fe378

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

README.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
A terraform module that helps you to provision a CloudWatch event that listens for activity on a given CodeCommit repo's branch and automatically triggers a CodePipeline.
2+
3+
More information is available on this guide:
4+
https://docs.aws.amazon.com/codepipeline/latest/userguide/triggering.html
5+
6+
If you use this module, make sure [to set `PollForSourceChanges=false`](https://docs.aws.amazon.com/codepipeline/latest/userguide/reference-pipeline-structure.html), to avoid double triggering of the CodePipeline.
7+
8+
Example usage:
9+
10+
module "cloudwatch_triggers_codepipeline" {
11+
source = "./cloudwatch-codecommit-trigger-codepipeline"
12+
aws_region = "eu-west-1"
13+
branch_to_monitor = "develop"
14+
codecommit_repo_arn = data.aws_codecommit_repository.my_repo.arn
15+
codepipeline_arn = aws_codepipeline.codepipeline_develop.arn
16+
tag = var.tag
17+
18+
providers = {
19+
aws = aws
20+
}
21+
}
22+
23+
Make sure you point it to existing CodeCommit repos and CodePipeline instances:
24+
25+
data "aws_codecommit_repository" "my_repo" {
26+
repository_name = "Repo-Name-Here"
27+
}
28+
29+
resource "aws_codepipeline" "codepipeline_develop" {
30+
# .. Definition here
31+
}

0 commit comments

Comments
 (0)