AWS Costs in Home-Assistant

A complete setup to push back AWS Costs to Home-Assistant for integration

Dennis Brouwer

3/6/20242 min read

AWS Spend in
Home-Assistant

As a Home-Assistant fan i'm used to have all kinds of metrics, data and integrations available on my Home-Assistant platform. Using it for monitoring, automations and other smart stuff.
Missing in this was : My actual AWS spend!

So i've made this integration myself and decided to publish it on Github to also make sure other people can use and integrate this data in their Home-Assistant setup.

Link to Github : https://github.com/dennisbrouwer91/hass-aws-cost

Steps:

  1. Think of a random string for your webhook url, example : 648BjdhfSJdfhsufjdsf, write it down somewhere

  2. Create a number helper in Home-Assistant (https://www.home-assistant.io/integrations/input_number/)

  3. Import the blueprint from the Github repo

  4. Create an automation from the blueprint, select the number helper and input the webhook_id that you've written down

  5. Copy the config.example.json file to config.dev.json and fill in the webhook URL, example : https://hass.mydomain.com/api/webhook/<webhookid>

  6. Make sure you have your AWS credentials ready and tested with AWS CLI

  7. Run sls deploy in the repository to deploy the code to your AWS account

  8. Done, every morning at 8AM the current AWS cost will be pushed to your Home-Assistant helper!