Skip to content

Commit

Permalink
Add note for serverless framework users.
Browse files Browse the repository at this point in the history
  • Loading branch information
tianchu committed Aug 6, 2020
1 parent 827e4f6 commit de19efe
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ resource "aws_cloudwatch_log_subscription_filter" "datadog_log_subscription_filt
{{% /tab %}}
{{% tab "CloudFormation/SAM" %}}

For AWS CloudFormation or SAM users, you can provision and manage your triggers using the CloudFormation [AWS::Logs::SubscriptionFilter][1] resource. See sample code below.
For AWS CloudFormation or SAM users, you can provision and manage your triggers using the CloudFormation [AWS::Logs::SubscriptionFilter][1] resource. See sample code below. The sample code also work for [Serverless Framework][2] users, put it under the [resources][3] section within your serverless.yml.

```yaml
Resources:
Expand All @@ -143,6 +143,8 @@ Resources:
[1]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html
[2]: https://www.serverless.com/
[3]: https://www.serverless.com/framework/docs/providers/aws/guide/resources/
{{% /tab %}}
{{< /tabs >}}
Expand Down

0 comments on commit de19efe

Please sign in to comment.