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.11.tar.gz
(31.5 kB
view hashes)
Built Distribution
Close
Hashes for cdk-budget-notifier-0.3.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39169542bae6548c5ab825ea4f6d4fa5d620edd7444633b7a1fc30c8a19aa9f7 |
|
MD5 | f7ae537aa5f81076f49db7eca8e9248b |
|
BLAKE2b-256 | fb94c6430cec9434c222ea440a529f0ec784f69dfc51167f2c9a8415a53a6c75 |
Close
Hashes for cdk_budget_notifier-0.3.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad172690a243eec04e9b54149a73e4e226b00b7f476122d2f5177a2eb5f0a174 |
|
MD5 | c1df1b93a93c24a342eb7a226d85645f |
|
BLAKE2b-256 | 6c85191efedae7da90eee180bfb6fb928f176bac715fff1f7943d078138af3b1 |