steampipe plugin install heroku

Table: heroku_app - Query Heroku Apps using SQL

Heroku is a cloud platform as a service (PaaS) that lets companies build, deliver, monitor, and scale apps. Heroku is flexible for both developers and enterprises, offering add-on services, including data services, utility services, and more. The platform also supports several programming languages, including Java, Node.js, Scala, Clojure, Python, PHP, and Go.

Table Usage Guide

The heroku_app table provides insights into the apps within Heroku. As a developer or system administrator, you can explore app-specific details through this table, including the app's unique ID, name, owner, and team. You can also gain insights into the app's stack, region, and maintenance status, which can be crucial for app maintenance, development, and scaling strategies.

Important Notes

  • Get queries require an app id.
  • Pagination is not currently supported for this resource type in the SDK.

Examples

List all apps

Explore the names and web URLs of all applications within your Heroku platform. This can be useful for a quick overview of all your applications, or to find the web URL of a specific application.

select
name,
web_url
from
heroku_app;
select
name,
web_url
from
heroku_app;

Apps by region

Explore which regions have the most Heroku apps deployed. This can help you understand the geographical distribution of your applications and inform decisions about where to focus resources.

select
region ->> 'name' as region_name,
count(*)
from
heroku_app
group by
region_name;
select
json_extract(region, '$.name') as region_name,
count(*)
from
heroku_app
group by
region_name;

Apps that have not changed for 30 days or more

Explore which applications have remained static for over a month. This can be useful for identifying potentially outdated or unused apps that may require updates or removal.

select
name,
web_url,
updated_at
from
heroku_app
where
updated_at < now() - interval '30 days';
select
name,
web_url,
updated_at
from
heroku_app
where
updated_at < datetime('now', '-30 days');

Schema for heroku_app

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form.
account_idtext=, !=, ~~, ~~*, !~~, !~~*Unique identifier of an account.
acmtextACM status of this app.
archived_attimestamp with time zoneWhen app was archived.
build_stackjsonbIdentity of the stack that will be used for new builds.
buildpack_provided_descriptiontextDescription from buildpack of app.
created_attimestamp with time zoneWhen app was created.
git_urltextGit repo URL of app.
idtext=Unique identifier of app.
internal_routingbooleanDescribes whether a Private Spaces app is externally routable or not.
maintenancebooleanMaintenance status of app.
nametextUnique name of app.
organizationjsonbIdentity of team.
ownerjsonbIdentity of app owner.
regionjsonbIdentity of app region.
released_attimestamp with time zoneWhen app was released.
repo_sizebigintGit repo size in bytes of app.
slug_sizebigintSlug size in bytes of app.
sp_connection_nametext=, !=, ~~, ~~*, !~~, !~~*Steampipe connection name.
sp_ctxjsonbSteampipe context in JSON form.
spacejsonbIdentity of space.
stackjsonbIdentity of app stack.
teamjsonbidentity of team.
updated_attimestamp with time zoneWhen app was updated.
web_urltextWeb URL of app.

Export

This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.

You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh script:

/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- heroku

You can pass the configuration to the command with the --config argument:

steampipe_export_heroku --config '<your_config>' heroku_app