A simple 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.5.tar.gz
(42.0 kB
view hashes)
Built Distribution
Close
Hashes for cdk-budget-notifier-0.3.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4a3c9ca6506c785b639542d845802ecded04253a81e162037987e4c8f4e4059 |
|
MD5 | 409aebf5281ebf6cda61a3e8f268486d |
|
BLAKE2b-256 | 3dd68c4b5bf85f4e8c6aab3de32e314ab9a60ad0533a77e30c6a60e84034a38a |
Close
Hashes for cdk_budget_notifier-0.3.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ace2bc43494baa217e221ca1d14d65c32ce0830348c23ae1f3ecd491532e96da |
|
MD5 | 994dbe50f73f409ca49dab5ef0a359e1 |
|
BLAKE2b-256 | 9295e997f512da9b1df71c6b2fa65b5a34924867a6e6a443a957bda1ee098462 |