Provides an Amplify Webhook resource.
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"
}
This resource supports the following arguments:
app_id
- (Required) Unique ID for an Amplify app.branch_name
- (Required) Name for a branch that is part of the Amplify app.description
- (Optional) Description for a webhook.This resource exports the following attributes in addition to the arguments above:
arn
- ARN for the webhook.url
- URL of the webhook.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