Created
September 24, 2023 08:36
-
-
Save rgarner/e376b2fc03784dfe956ec275922c257c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.