Resource: aws_amplify_webhook

Provides an Amplify Webhook resource.

Example Usage

resource "aws_amplify_app" "example" {
  name = "app"
}

resource "aws_amplify_branch" "master" {
  app_id      = aws_amplify_app.example.id
  branch_name = "master"
}

resource "aws_amplify_webhook" "master" {
  app_id      = aws_amplify_app.example.id
  branch_name = aws_amplify_branch.master.branch_name
  description = "triggermaster"
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import Amplify webhook using a webhook ID. For example:

import {
  to = aws_amplify_webhook.master
  id = "a26b22a0-748b-4b57-b9a0-ae7e601fe4b1"
}

Using terraform import, import Amplify webhook using a webhook ID. For example:

% terraform import aws_amplify_webhook.master a26b22a0-748b-4b57-b9a0-ae7e601fe4b1