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.17.tar.gz
(38.1 kB
view hashes)
Built Distribution
Close
Hashes for cdk-budget-notifier-0.3.17.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 851ed0943b29b1fe4232f6df294f0d7a52e7fb5577999cf1335360ee2232b366 |
|
MD5 | 74806b1b77f811a330df00fe45ca891b |
|
BLAKE2b-256 | 237f47f27f8df6092fc5c24b88eae90ea9107e7be26ef7dc9aefad8e58455d86 |
Close
Hashes for cdk_budget_notifier-0.3.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1213de89f9c17a3d9ed3b8027d10efd5c563613c8ef354e8752d6ccc5e7bbbfd |
|
MD5 | e49c929c380d06f034e8509c7f0d1a95 |
|
BLAKE2b-256 | f0d52d1fc6eeb472e2fc1180516b593f316d3ba5d414eeedc67e25896483f6df |