steampipe plugin install aws

Table: aws_lambda_layer - Query AWS Lambda Layer using SQL

The AWS Lambda Layer is a distribution mechanism for libraries, custom runtimes, and other function dependencies. Layers promote code sharing and separation of responsibilities so that you can iterate faster on writing business logic. They allow you to manage and share your function code in a more efficient way by reducing duplication and the size of deployment packages.

Table Usage Guide

The aws_lambda_layer table in Steampipe provides you with information about Lambda Layers within AWS Lambda. This table allows you, as a DevOps engineer, to query layer-specific details, including layer ARNs, layer versions, and compatible runtimes. You can utilize this table to gather insights on Lambda Layers, such as the versions available for a layer, the runtimes that a layer is compatible with, the size of the layer, and more. The schema outlines the various attributes of the Lambda Layer for you, including the layer ARN, layer version, compatible runtimes, layer size, and associated tags.

Examples

Basic Info

Discover the segments that have been created within your AWS Lambda layers, including their compatibility with different runtimes and architectures. This can help assess the elements within your system for potential updates or troubleshooting.

select
layer_arn,
layer_name,
layer_version_arn,
created_date,
jsonb_pretty(compatible_runtimes) as compatible_runtimes,
jsonb_pretty(compatible_architectures) as compatible_architectures,
version
from
aws_lambda_layer;
select
layer_arn,
layer_name,
layer_version_arn,
created_date,
compatible_runtimes,
compatible_architectures,
version
from
aws_lambda_layer;

Schema for aws_lambda_layer

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
account_idtextThe AWS Account ID in which the resource is located.
akasjsonbArray of globally unique identifier strings (also known as) for the resource.
compatible_architecturesjsonbA list of compatible instruction set architectures.
compatible_runtimesjsonbThe layer's compatible runtimes.
created_datetimestamp with time zoneThe date that the version was created, in ISO 8601 format.
descriptiontextThe description of the version.
layer_arntextThe Amazon Resource Name (ARN) of the function layer.
layer_nametextThe name of the layer.
layer_version_arntextThe ARN of the layer version.
license_infotextThe layer's open-source license.
partitiontextThe AWS partition in which the resource is located (aws, aws-cn, or aws-us-gov).
regiontextThe AWS Region in which the resource is located.
titletextTitle of the resource.
versionbigintThe version number.

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

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

steampipe_export_aws --config '<your_config>' aws_lambda_layer