turbot/terraform_azure_compliance

Query: apimanagement_backend_uses_https

Usage

powerpipe query terraform_azure_compliance.query.apimanagement_backend_uses_https

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std ->> 'url') like 'https%' then 'ok'
else 'alarm'
end status,
split_part(address, '.', 2) || case
when (attributes_std ->> 'url') like 'https%' then ' backend uses HTTPS'
else ' backend does not use HTTPS'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'azurerm_api_management_backend';

Controls

The query is being used by the following controls: