Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CloudWatch Event Rule Definition
{
"Name": "CodeCommitRule",
"EventPattern": "{\"source\": [ \"aws.codecommit\" ],\"detail-type\": [ \"CodeCommit Repository State Change\" ],\"resources\": [ \"<arn_of_codecommit_repo>\" ],\"detail\": {\"event\": [\"referenceCreated\",\"referenceUpdated\"],\"referenceType\":[\"branch\"],\"referenceName\": [\"master\"]}}",
"State": "ENABLED"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.