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.10.tar.gz
(31.5 kB
view hashes)
Built Distribution
Close
Hashes for cdk-budget-notifier-0.3.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35a593e80380ffca3b8a74f1669b9fac03e435a5c1d6a19f6a5e627b04cd5dff |
|
MD5 | 6e3577a30eb303fd2d24a95010876418 |
|
BLAKE2b-256 | a5f723b1e3fdaf4dd48da1dc2e42e6fe9396221b84cf98e6913ea1222427d9a6 |
Close
Hashes for cdk_budget_notifier-0.3.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e595931f05aad053bbda41db26baa6ba8e59a22e2aee32d1d210de3f202de02 |
|
MD5 | ef9895f16f52fb65e9ce27bf9c53e342 |
|
BLAKE2b-256 | 94ae9b37513aed846c8675a7059a0d381538d2eab49d312cb54997d692dadfd0 |