Skip to content

Instantly share code, notes, and snippets.

@rgarner
Created September 24, 2023 08:36
Show Gist options
  • Save rgarner/e376b2fc03784dfe956ec275922c257c to your computer and use it in GitHub Desktop.
Save rgarner/e376b2fc03784dfe956ec275922c257c to your computer and use it in GitHub Desktop.
#!/bin/bash
for APP in $(heroku apps -A | awk '{ print $1 }' | grep "[a-z]")
do
echo $APP ':'
heroku addons --app "$APP" | grep '/month'
heroku ps:type --app "$APP" | awk '$4 ~ /[1-9]/'
done
@rgarner
Copy link
Author

rgarner commented Sep 24, 2023

Republishing from https://twitter.com/rgarner/status/1529736416275664897

Not sure what Heroku is costing you? Built up a few apps now?

This prints you all your Heroku app names across teams, along with the addons that are costing you $/month and the dyno types that have non-zero amounts in their cost/month column.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment