turbot/aws_insights

Query: lambda_function_code_size_by_account

Usage

powerpipe query aws_insights.query.lambda_function_code_size_by_account

SQL

select
a.title as "Account",
round(cast(sum(i.code_size) / 1024 / 1024 as numeric), 1) as "MB"
from
aws_lambda_function as i,
aws_account as a
where
a.account_id = i.account_id
group by
a.title
order by
a.title;

Dashboards

The query is used in the dashboards: