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, versionfrom aws_lambda_layer;
select layer_arn, layer_name, layer_version_arn, created_date, compatible_runtimes, compatible_architectures, versionfrom aws_lambda_layer;
Schema for aws_lambda_layer
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
account_id | text | =, !=, ~~, ~~*, !~~, !~~* | The AWS Account ID in which the resource is located. |
akas | jsonb | Array of globally unique identifier strings (also known as) for the resource. | |
compatible_architectures | jsonb | A list of compatible instruction set architectures. | |
compatible_runtimes | jsonb | The layer's compatible runtimes. | |
created_date | timestamp with time zone | The date that the version was created, in ISO 8601 format. | |
description | text | The description of the version. | |
layer_arn | text | The Amazon Resource Name (ARN) of the function layer. | |
layer_name | text | The name of the layer. | |
layer_version_arn | text | The ARN of the layer version. | |
license_info | text | The layer's open-source license. | |
partition | text | The AWS partition in which the resource is located (aws, aws-cn, or aws-us-gov). | |
region | text | The AWS Region in which the resource is located. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
title | text | Title of the resource. | |
version | bigint | The 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