Table: aws_lambda_layer_version - Query AWS Lambda Layer Versions using SQL
The AWS Lambda Layer Version 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. With layers, you can manage your in-house and external code dependencies separately.
Table Usage Guide
The aws_lambda_layer_version
table in Steampipe provides you with information about each version of a Lambda layer within AWS Lambda. This table allows you, as a DevOps engineer, to query version-specific details, including the layer ARN, description, license info, compatible runtimes, and the date it was created. You can utilize this table to gather insights on layer versions, such as their compatibility with different runtimes, license information, and more. The schema outlines the various attributes of the Lambda layer version for you, including the layer version ARN, layer name, version, description, and associated tags.
Examples
Basic Info
Explore which AWS Lambda layer versions are available and when they were created to better manage and update your serverless applications. This can help you ensure your applications are always running on the latest and most secure versions.
select layer_arn, layer_name, layer_version_arn, created_date, jsonb_pretty(policy) as policy, jsonb_pretty(policy_std) as policy_std, versionfrom aws_lambda_layer_version;
select layer_arn, layer_name, layer_version_arn, created_date, policy, policy_std, versionfrom aws_lambda_layer_version;
Schema for aws_lambda_layer_version
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. | |
content | jsonb | Details about the layer version. | |
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 ARN of the 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). | |
policy | jsonb | The policy document. | |
policy_std | jsonb | Contains the policy document in a canonical form for easier searching. | |
region | text | The AWS Region in which the resource is located. | |
revision_id | text | A unique identifier for the current revision of the policy. | |
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_version