steampipe plugin install tfe

Table: tfe_organization - Query Terraform Enterprise Organizations using SQL

A Terraform Enterprise Organization represents a collection of users, teams, and workspaces. Within an organization, users can collaborate and manage workspaces together. The organization also provides a context in which resources such as Sentinel policies and SSH keys can be shared.

Table Usage Guide

The tfe_organization table provides insights into organizations within Terraform Enterprise. As a DevOps engineer, explore organization-specific details through this table, including membership, collaboration status, and associated workspaces. Utilize it to uncover information about organizations, such as those with specific team access, the collaboration status between teams, and the management of workspaces.

Examples

List organizations

Explore the different organizations within your network. This allows for better management and understanding of the various groups interacting with your systems.

select
*
from
tfe_organization;
select
*
from
tfe_organization;

Organizations that do not require two factor

Discover the organizations that do not comply with two-factor authentication. This can be useful for assessing security measures and identifying potential vulnerabilities within your organization.

select
name,
two_factor_conformant
from
tfe_organization
where
not two_factor_conformant;
select
name,
two_factor_conformant
from
tfe_organization
where
not two_factor_conformant;

Schema for tfe_organization

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
collaborator_auth_policytextAuthentication policy: password, two_factor_mandatory.
cost_estimation_enabledbooleanWhether or not the cost estimation feature is enabled for all workspaces in the organization.
created_attimestamp with time zoneTime when the token was created.
emailtextEmail address for notifications.
external_idtextExternal ID for the organization.
nametext=Name of the organization.
owners_team_saml_role_idtextSAML role mapped to the owners team.
permissionsjsonbPermissions for the organization.
saml_enabledbooleanTrue if SAML is enabled for the organization.
session_rememberbigintSession expiration (minutes).
session_timeoutbigintSession timeout after inactivity (minutes).
trial_expires_attimestamp with time zoneWhen the trial, if any, expires.
two_factor_conformantbooleanIf true, members are required to use two factor authentication.

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)" -- tfe

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

steampipe_export_tfe --config '<your_config>' tfe_organization