Skip to content

Commit

Permalink
Add top-level configuration example for CDK
Browse files Browse the repository at this point in the history
  • Loading branch information
eoinsha committed Oct 10, 2022
1 parent fab4cb6 commit fc46e30
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

Automatic, best-practice CloudWatch **Dashboards** and **Alarms** for your SAM, CloudFormation, CDK and Serverless Framework applications.

SLIC Watch supports: _AWS Lambda, API Gateway, DynamoDB, Kinesis Data Streams, SQS Queues, Step Functions, ECS (Fargate or EC2), SNS and EventBridge._ and works with ⚡️ **Serverless Framework**, 🐿 **AWS SAM**, **AWS CDK** and ☁️ **CloudFormation**.
SLIC Watch supports: _AWS Lambda, API Gateway, DynamoDB, Kinesis Data Streams, SQS Queues, Step Functions, ECS (Fargate or EC2), SNS and EventBridge._ ⚡️ **Serverless Framework**, 🐿 **AWS SAM**, **AWS CDK** and ☁️ **CloudFormation**.

* Serverless Framework v2 and v3 are supported in the _SLIC Watch Serverless Plugin_.
* SLIC Watch is available as a _CloudFormation Macro_ published in the Serverless Application Repository (SAR). This allows you to add SLIC Watch to SAM, CDK or CloudFormation templates by simply adding a `Transform` to your template.
Expand Down Expand Up @@ -312,6 +312,16 @@ Metadata:
...
```

- For *CDK Stacks, the top-level SLIC Watch configuration can be set as follows.
```typescript
this.templateOptions.metadata = {
slicWatch: {
enabled: true,
....
}
}
```

- The `topicArn` may be optionally provided as an SNS Topic destination for all alarms. If you omit the topic, alarms are still created but are not sent to any destination.
- Alarms or dashboards can be disabled at any level in the configuration by adding `enabled: false`. You can even disable all plugin functionality by specifying `enabled: false` at the top-level plugin configuration.

Expand Down

0 comments on commit fc46e30

Please sign in to comment.