@stefanfreitag/aws-budget-notifier
Project description
AWS Budget Notifier
Setup AWS Budget notifications using AWS CDK. By default notifications are sent to all subscribers via e-mail.
Configuration options
-
Budget
limit
: The budget limit, e.g. 10.unit
: The unit of measurement for the limit, e.g. USD.
-
Cost Filters
Key Description application
If specified the application (name) is added as tag filter. availabilityZones
If specified the availability zones (e.g. eu-central-1
) is added as tag filter.costcenter
If specified the cost center is added as tag filter. service
If specified the service (e.g. Lambda, EC2) is added as tag filter. -
Notification
recipients
: Notifications are sent to this e-mail addressesthreshold
: Notifications are triggered ifthreshold
percent of the budget are exceeded.
Example usage
import * as cdk from "@aws-cdk/core";
import { CfnBudget } from "@aws-cdk/aws-budgets";
import { StackProps } from "@aws-cdk/core";
import { BudgetNotifier } from "./budget_notifier";
export class BudgetNotifierStack extends cdk.Stack {
constructor(scope: cdk.Construct, id: string, props?: StackProps) {
super(scope, id, props);
new BudgetNotifier(this, "test", {
recipients: ["john@doe.com"],
availabilityZones: ["eu-central-1", "eu-west-1"],
application: "HelloWorld",
costCenter: "myCostCenter",
limit: 10,
unit: "USD",
threshold: 75,
});
}
}
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.1.5.tar.gz
(24.1 kB
view hashes)
Built Distribution
Close
Hashes for cdk-budget-notifier-0.1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e118af12fb4ba4646daf84b41cb506f20981d8f90a0dd233d4ed118133feaee |
|
MD5 | 382d5cbf11eeef9084419c421703d545 |
|
BLAKE2b-256 | d1aa251755e553cf48ff8ec6a7d2c4dcfe8ffc976aa3dd7a1b1642f04fa3a706 |
Close
Hashes for cdk_budget_notifier-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42c91997099c045df6595ca45a22e32694d37ee9c7703e73e47ba3cee75abfbb |
|
MD5 | b8c86c5d65baccec541c03b1e2ac64eb |
|
BLAKE2b-256 | 208e6589ed7992982b8af0cc1108c47ec2b1d6d1ae1d0c519beb0ca00273a40d |