Skip to main content

awsbudget

awsbudget is a small, Python command-line utility for creating simple AWS Budgets.

At the moment, this tool was built to solve a very simple use case - you want to create a single budget in USD, with notifications at three levels:

  • You are projected to spend greater than 80% of your budget
  • You have spent greater than 70% of your budget
  • You've spent 100% of your budget

and you want these notifications to go directly to an email address (vs. to an SNS topic).

Behind the scenes, we create a CloudFormation stack using the template in this repo to manage this budget in the default region tied to your account.

This tool uses boto3 to make requests to AWS. If you're having trouble authenticating to the correct account, note that boto3 looks for your AWS credentials and profile information in a few different places.

Installation

Within your target Python virtual environment, run

pip install awsbudget

or git clone this repository, then from the root of the repo, run

pip install .

Usage

Run awsbudget --help to get a full list of options.

You can create a budget by passing all required data as command line options directly:

awsbudget --new --admin_email admin@host.com --budget 20    

or you can run

awsbudget --new

and the tool will prompt you for the data interactively:

$ awsbudget --new --profile personal
Please enter the email address where you'd like budget notifications sent: admin@host.com
Sending notifications to admin@host.com
Enter your budget in USD: 20
Creating a new budget of $20
Created CloudFormation stack to manage budgets: arn:aws:cloudformation:us-east-1:account-id:stack/aws-budgets/stack-id

Note that you can specify that awsbudget use a specific AWS profile defined in your AWS config file (e.g. ~/.aws/config).

awsbudget --new --profile personal

This can be useful when creating budgets for multiple AWS accounts.

Metadata

Release files for awsbudget 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for awsbudget 0.0.7
File Size Uploaded
awsbudget-0.0.7.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for awsbudget 0.0.7
File Interpreter ABI Platform
awsbudget-0.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 8.8 kB

Release files / awsbudget-0.0.7.tar.gz

Download URL awsbudget-0.0.7.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e65402c43cad42bcd1e01e59aa64d86511c160eb2aebd82fd805b8174f457139
BLAKE2b-256 checksum
How to use checksums
3fb347c769d403af8a678606dd854cd4ad5f990bcf2c1bd99e3f57ed20c9071b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / awsbudget-0.0.7-py3-none-any.whl

Download URL awsbudget-0.0.7-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8cc22ecd8f9fdf42dc59f409bf621d6ef5ad90754e73eb549801327c091a1baf
BLAKE2b-256 checksum
How to use checksums
e14543593936ac211a0f6e273ed4db6821675c4b99fad5081bc9ac1094bb3e7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page