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.4.tar.gz
(41.9 kB
view hashes)
Built Distribution
Close
Hashes for cdk-budget-notifier-0.3.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6b62879ba16607f74c7c8f1fce621193303146b1a45547139d4c92f87dad18a |
|
MD5 | bc692999038df51d3dfa1f11e5f2cf20 |
|
BLAKE2b-256 | 1b075d0ce907578ee436d15ab40a22ee8002af962174521bd08d0c92805f79ce |
Close
Hashes for cdk_budget_notifier-0.3.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fba1a2dc90d05c7ef99175a5fafbeb97f17b18547fce0e40d4b2dd11c5e385e |
|
MD5 | 0b8e4f7183da4afc5b971e6aa5f329bf |
|
BLAKE2b-256 | d4ff6a06fc630364ef68dcdcf6c54c007e45442b37b1ecf337e61529297acc8c |