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.0.3.tar.gz
(41.7 kB
view hashes)
Built Distribution
Close
Hashes for cdk-budget-notifier-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c8fe0064f73b646e1e41d4ea53176595e65ed9f43e62d9ed00eac97ee0d6ee1 |
|
MD5 | 962ca635b401b17794bca967bf31dc37 |
|
BLAKE2b-256 | ebd282f76113ce2819f886ddeb86597a02e08a932ff40b46b339157c5b064f37 |
Close
Hashes for cdk_budget_notifier-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2a553d7ff27fe81958aec21845c0eaaa93c8fb9aa97986c7cdf91a1e3b84f38 |
|
MD5 | 42088bbf1a4b3d6997f2b7e54648e4bc |
|
BLAKE2b-256 | 800eacc2883704f2f46e2ed495817002ae80005d97c229ded8ed8ce4521b99dd |