@stefanfreitag/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.3.1.tar.gz
(42.1 kB
view hashes)
Built Distribution
Close
Hashes for cdk-budget-notifier-0.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 567abdac19e1e2221479ae8fb263612d5d226bff1439e47407dbac4d8f6177b0 |
|
MD5 | 3c8014dbc6388189fd2964956a02fcc1 |
|
BLAKE2b-256 | 899e1369d87027cf96cd48d67f230552f5c5cea40f8b48b8b21798cc8585b888 |
Close
Hashes for cdk_budget_notifier-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 008f1657272aac75c8da9a729248ae009519402e6fbab2e8a82e089e5a7d4e48 |
|
MD5 | b2ad8a116906a27fa427fe2633ed76f5 |
|
BLAKE2b-256 | 45a44734ebc58b4fb2b79878fb6cd828371e859935c34a138df9a119f2f27455 |