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.16.tar.gz
(31.5 kB
view hashes)
Built Distribution
Close
Hashes for cdk-budget-notifier-0.3.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca42a21eb0177aa6baca347be5448e5379ae3f9ba1bf276c9ddd01e8a0635303 |
|
MD5 | f2d5ef817ba78096282464182ab24b03 |
|
BLAKE2b-256 | 5bf9420a3a43fe5983536c661f5edf848b43b12e735c3abfdbbc38eb958ce58c |
Close
Hashes for cdk_budget_notifier-0.3.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eeac60683b2b96ac358c14f09eb7f04cd2626157738c6427ffd7ce7f1ca9b49d |
|
MD5 | 1e712ec854ff1d3b69ed6f1d90f0a5da |
|
BLAKE2b-256 | 034b00c40be940ba8cec0fe1717511ec21f4181c6ade9aa2f2a4ee49db9c45be |