Generating Heroku App Inventory Lists (CSV) using Python/Pandas
Many businesses need to leave PAAS vendors like Heroku after a while. It's nice to have a list of all the moving parts as part of any migration plan. Here's a quick script to generate one:
When migrating thousands of containers across dozens of teams to Kubernetes or Dockerized environments, it can really help to have an inventory list which describes all the running services on all slugs in the ecosystem. Here's a python script that will do just that:
Output is in this format (CSV):
app_id
app_name
dyno_id
dyno_size
dyno_type
addons
UUID
Name01
dyno_UUID
Basic
proc_name0
postgresql-metric-NUM (heroku-postgresql:PLAN), redis-silhouetted-NUM (heroku-redis:PLAN)
UUID
Name01
dyno_UUID
Basic
web
postgresql-metric-NUM (heroku-postgresql:PLAN), redis-silhouetted-NUM (heroku-redis:PLAN)
UUID
Name02
dyno_UUID
Basic
web
postgresql-metric-NUM (heroku-postgresql:PLAN), redis-silhouetted-NUM (heroku-redis:PLAN)
UUID
Name02
dyno_UUID
Basic
proc_name0
postgresql-metric-NUM (heroku-postgresql:PLAN), redis-silhouetted-NUM (heroku-redis:PLAN)
If you're looking to migrate from Heroku into AKS, GKE, EKS, or some other Kubernetes solution, we've got your back. Reach out to talk to our certified experts for your next cloud migration project.
Last updated