turbot/gcp_compliance

Query: compute_https_load_balancer_logging_enabled

Usage

powerpipe query gcp_compliance.query.compute_https_load_balancer_logging_enabled

SQL

select
m.self_link as resource,
case
when s.self_link is null then 'skip'
when s.log_config_enable then 'ok'
else 'alarm'
end as status,
case
when s.self_link is null then m.name || ' uses backend bucket.'
when s.log_config_enable then m.name || ' logging enabled.'
else m.name || ' logging disabled.'
end as reason
, m.location as location, m.project as project
from
gcp_compute_url_map as m
left join gcp_compute_backend_service as s on s.self_link = m.default_service;

Controls

The query is being used by the following controls: