AWS Lambda
Official · maintained by Marmotmarmotdata/lambda Discover Lambda functions from AWS accounts
The Lambda plugin discovers and catalogs AWS Lambda functions across your AWS accounts. It captures function metadata including runtime, memory, timeout, VPC configuration, layers, tracing, and tags.
Required Permissions
AWS Configuration
See AWS Configuration for the supported AWS configuration options.
Keyless authentication
On Marmot Cloud or Marmot Enterprise the pipeline can present its own identity instead of access keys. Register your Marmot instance as an IAM OIDC identity provider (client id sts.amazonaws.com), create a role whose trust policy allows sts:AssumeRoleWithWebIdentity for that provider with <issuer host>:sub equal to the pipeline's subject, pipeline:<name> as reported by the pipeline API, and set credentials.role_arn and credentials.region. No key exists anywhere; Marmot mints a short-lived token for each run.
In the UI
Point-and-click, no config file needed.
- 1 Open Runs Create pipeline
- 2 Pick AWS Lambda from the plugin list.
- 3 Fill in the wizard, set a schedule, save.
With the CLI
Save a YAML config, then run marmot ingest.
name: my-lambda-pipeline
runs:
- lambda:
# No required fields — see the Configuration tab.$ marmot ingest -c ingest.yamlNot using plugins? Other ways to populate Marmot
Configuration
7 top-level fields. * marks required fields.
tags multiselect Tags to apply to discovered assets
external_links object[] External links to show on all assets
name string Display name for the link
icon string Icon identifier for the link
url string URL to the external resource
filter object Filter discovered assets by name (regex)
include multiselect Include patterns for resource names (regex)
exclude multiselect Exclude patterns for resource names (regex)
credentials object AWS credentials configuration
use_default bool Use AWS credentials from environment or default profile (recommended)
- default
- true
id string AWS access key ID
secret password AWS secret access key
token password AWS session token
profile string AWS profile to use from shared credentials file
role_arn string IAM role to assume with the Marmot identity token (AssumeRoleWithWebIdentity); its trust policy names the Marmot issuer as an OIDC provider. Setting it federates: no keys are needed, and region is required. role, if also set, is assumed on top of it
role string AWS IAM role ARN to assume with AssumeRole from the base credentials (static keys, a profile, the default chain, or role_arn)
role_external_id string External ID for cross-account role assumption
region string AWS region for services
endpoint string Custom endpoint URL for AWS services
tags_to_metadata bool Convert AWS tags to Marmot metadata
include_tags multiselect List of AWS tags to include as metadata. By default, all tags are included.
audience string Audience of the Marmot identity token. Derived from the credentials' federation settings; set it only when the cloud side expects another
Assets emitted
Metadata this plugin attaches to each discovered asset.
AWS Lambda
LambdaFieldsLambda-specific metadata fields
function_arn stringThe ARN of the Lambda function
runtime stringThe runtime environment for the function (e.g. go1.x, python3.12, nodejs20.x)
handler stringThe function's entry point handler
role stringThe IAM execution role ARN
code_size intThe size of the function's deployment package in bytes
code_sha256 stringSHA256 hash of the deployment package
package_type stringDeployment package type (Zip or Image)
memory_size_mb intMemory allocated to the function in MB
timeout_seconds intFunction execution timeout in seconds
description stringThe function's description
last_modified stringDate and time the function was last modified
version stringThe function version
architectures stringInstruction set architectures (x86_64, arm64)
environment_variable_count intNumber of environment variables configured
vpc_id stringVPC ID if the function is connected to a VPC
subnet_count intNumber of VPC subnets
security_group_count intNumber of VPC security groups
ephemeral_storage_mb intEphemeral storage allocated in MB
layers stringLambda layer ARNs attached to the function
layer_count intNumber of Lambda layers attached
tracing_mode stringX-Ray tracing mode (Active or PassThrough)
state stringCurrent state of the function (Active, Pending, Inactive, Failed)
last_update_status stringStatus of the last update (Successful, Failed, InProgress)
tags objectAWS resource tags