Webhook DSL
The simplest way to declare a webhook is to use the github_token
method. This single line is enough to configure and set up the webhook.
.pipedream/webhook.rb:
github_token(ssm("/codepipeline/github/token"))
Full DSL
The convenience methods merely wrap properties of the AWS::CodePipeline::Webhook. If you wanted to set the CloudFormation properties more directly, here’s an example of using the Full DSL.
.pipedream/webhook.rb:
authentication "GITHUB_HMAC"
authentication_configuration(secret_token: ssm("/codepipeline/github/token"))
filters([{
json_path: "$.ref",
match_equals: "refs/heads/{Branch}",
}])
Pro tip: Use the <- and -> arrow keys to move back and forward.
Edit this page
See a typo or an error? You can improve this page. This website is available on GitHub, and contributions are encouraged and welcomed. We love pull requests from you!
- Suggest an edit to this page (here's the contributing guide).
- Open an issue about this page to report a problem.