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,
});
Contributions
dedominicisfa |
Philip M. Gollucci |
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.7.tar.gz
(27.2 kB
view hashes)
Built Distribution
Close
Hashes for cdk-budget-notifier-0.3.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76ee1a650249764edd59f6edff21a06bd26402270164886b29f3687f3ef60deb |
|
MD5 | 7a7b53bd76b4f37d717f2052bcb87531 |
|
BLAKE2b-256 | 5851240310a85b52f4265bf3458a8f528000d3353a2cfb9774f7435ada3746d7 |
Close
Hashes for cdk_budget_notifier-0.3.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d61dc151e6f1025e67e567c1e982241bb57dffe9f084639e50869fe860dbdd7e |
|
MD5 | f74bd8e4b568a4383b7821e7ec593d8c |
|
BLAKE2b-256 | c724b41471bc5c2b3413579056b53b3f9ed18b51b83b6a4e253efb87a018aec4 |