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.4.tar.gz
(41.5 kB
view hashes)
Built Distribution
Close
Hashes for cdk-budget-notifier-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3593b8a6798cf8cc2f3ac3826c68123f64330c401ec1d77a37bd38b2d6c9b2ef |
|
MD5 | 4bf5886290d4394270fec4dc221175ae |
|
BLAKE2b-256 | b30fa261e053c7c398aa700987b3790e89307bc548a1c4a7092c5f07673f711b |
Close
Hashes for cdk_budget_notifier-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dacb4220c0779a4c11f7847115b8aaed0a5fa4457cbdd6640064c917fe672084 |
|
MD5 | 439be3687da6ba88db40e3bc322e8a97 |
|
BLAKE2b-256 | 6bfe6973155d57f5a7b3de223f50fd9a141ca38bb9fb141c3e2bb0af872811a7 |