turbot/steampipe-mod-terraform-azure-compliance

Control: Data factories should use GitHub repository

Description

Ensure that Data Factory utilizes a Git repository as its source control mechanism. This control is non-compliant if Data Factory Git repository is not configured.

Usage

Run the control in your terminal:

powerpipe control run terraform_azure_compliance.control.data_factory_uses_git_repository

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run terraform_azure_compliance.control.data_factory_uses_git_repository --share

SQL

This control uses a named query:

select
address as resource,
case
when ((attributes_std -> 'github_configuration') is not null) or ((attributes_std -> 'vsts_configuration') is not null) then 'ok'
else 'alarm'
end status,
split_part(address, '.', 2) || case
when ((attributes_std -> 'github_configuration') is not null) or ((attributes_std -> 'vsts_configuration') is not null) then ' uses git repository'
else ' not use git repository'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'azurerm_data_factory';

Tags