Env0
Env0 is a cloud infrastructure automation and self-service platform that enables organizations to manage, govern, and orchestrate their Infrastructure as Code (IaC) deployments. It provides automated workflow management for Terraform, Terragrunt, Pulumi, OpenTofu, Kubernetes, and Helm, allowing teams to deploy cloud infrastructure with built-in governance, cost controls, and compliance policies.
| Category | Infrastructure as code |
| Direction | Query source |
| Sign-in | API Key and Secret |
| Query languages | SQLite |
| Tables | 9 |
| Query templates | 42 |
| Website | env0.com |
Before you start
Huntbase signs in to Env0 with API Key and Secret. Create the credential in Env0 first, then keep it to hand for the Connect step.
- In env0, go to Organization Settings › API Keys and click +.
- Create a User API key rather than an Admin API key, and give it only the project permissions Huntbase needs.
- Copy the API key ID and secret.
- An organization administrator creates API keys and assigns their role. If the role assignment changes, the key's permissions change too.
- After you delete an API key, it can take up to an hour to stop working.
For the vendor's own instructions, see env0 API authentication documentation.
Use a dedicated, read-only credential for Huntbase where the product allows it. Huntbase only needs to read.
Connect Env0
- Go to Connections and click New connection, or click New connection on the Env0 product page.
- On Product, pick Env0 and choose the Owner.
- On Details, give the connection a Name and, optionally, a Description.
- On Connect, fill in the settings and credentials described below.
- On Verify, review the summary and click Create & check.
For everything else on the setup page — saving a draft, I'll do this later, and what each check result means — see Connections.
Credentials
The only Method is API Key and Secret. Enter a Credential label (for example Production), then fill in:
| Field | Required | Notes |
|---|---|---|
| API Key | Yes | The API key ID. Secret — not shown again after you save it. |
| API Secret | Yes | The API key secret. Secret — not shown again after you save it. |
Query it
Once connected, Env0 can serve these languages in a query tab, and Scout can use it when you ask in Auto:
| Language | Use it for |
|---|---|
| SQLite | SQL over the 9 tables listed below, alongside every other connected source. |
Example: SQLite
List all teams — basic info — Explore your team's basic information, such as names and associated IDs, to understand the structure and organization of your team within the platform.
select
name,
id,
description,
organization_id
from
env0_team;
Env0 ships with 42 query templates. Find them in Library › Queries — see Query templates.
Tables
Env0 adds 9 tables. Browse their columns from Schema in the query bar's ⋯ menu.
All 9 tables
| Table | Contains |
|---|---|
env0_api_key | Returns information about the env0 API keys. |
env0_environment | Returns information about the env0 environment. |
env0_notification | Returns information about the env0 notifications. |
env0_organization | Returns information about the env0 organization. |
env0_project | Returns information about the env0 project. |
env0_role | Returns information about the env0 roles. |
env0_team | Returns information about the env0 teams. |
env0_template | Returns information about the env0 template. |
env0_user | Returns information about the env0 users. |
Next steps
- Connections — health, credentials and settings after you connect
- Query languages — syntax, parameters and time ranges
- Chatting with Scout — ask questions without writing a query
- All integrations — the rest of the catalog