@stefanfreitag/aws-budget-notifier
Project description
AWS Budget Notifier
Setup a AWS Budget notification using AWS Cloud Development Kit (CDK). The construct supports notifying to
- users via e-mail. Up to 10 e-mail addresses are supported
- an SNS topic
The SNS topic needs to exist and publishing to the topic needs to be allowed.
Example usage in a CDK Stack
const app = new cdk.App();
const stack = new Stack(app, "BudgetNotifierStack");
// Define the SNS topic and setup the resource policy
const topic = new Topic(stack, "topic");
const statement = new PolicyStatement({
effect: Effect.ALLOW,
principals: [new ServicePrincipal("budgets.amazonaws.com")],
actions: ["SNS:Publish"],
sid: "Allow budget to publish to SNS"
});
topic.addToResourcePolicy(statement);
// Setup the budget notifier and pass the ARN of the SNS topic
new BudgetNotifier(stack, "notifier", {
topicArn: topic.topicArn,
availabilityZones: ["eu-central-1"],
costCenter: "myCostCenter",
limit: 10,
unit: "USD",
threshold: 15,
notificationType: NotificationType.FORECASTED,
});
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cdk-budget-notifier-0.3.0.tar.gz
(42.1 kB
view hashes)
Built Distribution
Close
Hashes for cdk-budget-notifier-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9df935d2151838ab7b15d9072ca8e49bbdf6c96a430cfc5a9e25260f0b2e9ce5 |
|
MD5 | 307ec57ee43de3d24b7259944a49ec67 |
|
BLAKE2b-256 | 82f665d6b85cc174c0857c9b66e2ea1e56628c013a511d4e714e6943a129665e |
Close
Hashes for cdk_budget_notifier-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab6420e727e5e95e4755780a50a4c0cdef45c55f405f7cb975799443f5f95642 |
|
MD5 | 2354c16b4ba8369ddd7fe799c204005e |
|
BLAKE2b-256 | c46a31a4c4c32087b5351f57901b86442d495594df4407d9e4adbefe88b1ed00 |