@gammarers/aws-budgets-notification
Version:
AWS Budgets Notification
68 lines (46 loc) • 2.44 kB
Markdown
# AWS Budgets Notification
[](https://github.com/gammarers/aws-budgets-notification/blob/main/LICENSE)
[](https://www.npmjs.com/package/@gammarers/aws-budgets-notification)
[](https://pypi.org/project/gammarers.aws-budgets-notification/)
[](https://www.nuget.org/packages/Gammarers.CDK.AWS.BudgetNotification/)
[](https://github.com/gammarers/aws-budgets-notification/actions/workflows/release.yml)
[](https://github.com/gammarers/aws-budgets-notification/releases)
[](https://constructs.dev/packages/@gammarers/aws-budgets-notification)
A construct library for creating AWS Budgets Notification to Slack with the AWS CDK.
## Resources
This construct creating resource list.
- SNS Topic
- ChatBot SlackChannelConfiguration
- Budgets (linked account count or self)
## Install
### TypeScript
```shell
npm install @gammarers/aws-budgets-notification
# or
yarn add @gammarers/aws-budgets-notification
```
### Python
```shell
pip install gammarers.aws-budgets-notification
```
### C# / .NET
```shell
dotnet add package Gammarers.CDK.AWS.BudgetNotification
```
## Example
```typescript
import { BudgetsNotification } from '@gammarers/aws-budgets-notification';
new BudgetsNotification(stack, 'BudgetsNotification', {
slackWorkspaceId: 'T0XXXX111', // already AWS account linked your Slack.
slackChannelId: 'XXXXXXXX', // already created your slack channel.
budgetLimitAmount: 50,
// optional linked account list
linkedAccounts: [
'111111111111',
'222222222222',
],
});
```

## License
This project is licensed under the Apache-2.0 License.