aws_codecommit_trigger
Provides a CodeCommit Trigger Resource.
NOTE on CodeCommit: The CodeCommit is not yet rolled out in all regions - available regions are listed the AWS Docs.
Example Usage
resource "aws_codecommit_trigger" "test" { depends_on = ["aws_codecommit_repository.test"] repository_name = "my_test_repository" trigger { name = "noname" events = ["all"] destination_arn = "${aws_sns_topic.test.arn}" } }
Argument Reference
The following arguments are supported:
-
repository_name
- (Required) The name for the repository. This needs to be less than 100 characters. -
name
- (Required) The name of the trigger. -
destination_arn
- (Required) The ARN of the resource that is the target for a trigger. For example, the ARN of a topic in Amazon Simple Notification Service (SNS). -
custom_data
- (Optional) Any custom data associated with the trigger that will be included in the information sent to the target of the trigger. -
branches
- (Optional) The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches. -
events
- (Required) The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS). If no events are specified, the trigger will run for all repository events. Event types include:all
,updateReference
,createReference
,deleteReference
.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/r/codecommit_trigger.html