Files
opentf/website/source/docs/providers/aws/r/code_commit_trigger.html.markdown
George Christou 61277c0dbd website/docs: Run terraform fmt on code examples (#12075)
* docs/vsphere: Fix code block

* docs: Convert `...` to `# ...` to allow `terraform fmt`ing

* docs: Trim trailing whitespace

* docs: First-pass run of `terraform fmt` on code examples
2017-02-19 00:48:50 +02:00

1.7 KiB

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
aws AWS: aws_codecommit_trigger docs-aws-resource-codecommit-trigger Provides a CodeCommit Trigger Resource.

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.