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.2.tar.gz
(43.1 kB
view hashes)
Built Distribution
Close
Hashes for cdk-budget-notifier-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a9477f6d3da367039055aa571d5a0207d6806c555166751873a49f427ca73d4 |
|
MD5 | f824870f0a6b04bf4ecf1532bf71c6c6 |
|
BLAKE2b-256 | a55fdb7569430ed44260040e34293e84e8e3437c24a2e72bfc3bbed1f76ce915 |
Close
Hashes for cdk_budget_notifier-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 912248affb16554b576387633fbbb66a7e1b8df10aa542a2a654379f7c17576b |
|
MD5 | e0fff6101ee78f05978a5bdcb62bf55c |
|
BLAKE2b-256 | 9912049d7b7905f6463eaffeba4b6e880d95cb8ca1f938172a2d370715f99ed9 |