Manage AWS Lambda functions using awsclaw. Create, update, invoke, and delete functions, manage aliases/versions, event source mappings, layers, tags, function URLs, concurrency, and code signing.
Manage AWS Lambda functions, event source mappings, aliases, versions, and layers.
Use this skill when the user:
Execute AWS Lambda commands including lifecycle management and event source mappings. ALWAYS provide params object.
List Lambda functions.
{ "command": "ListFunctions", "params": { "MaxItems": 50 } }
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| FunctionVersion | string | No | Set to ALL to include all versions |
| Marker | string | No | Pagination marker from previous response |
| MaxItems | number | No | Maximum number of functions to return |
| MasterRegion | string | No | For Lambda@Edge, the region of the master function |
Get function details including code location.
{ "command": "GetFunction", "params": { "FunctionName": "my-function" } }
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| FunctionName | string | Yes | Function name or ARN |
| Qualifier | string | No | Function version or alias |
Get function configuration (runtime, handler, memory, timeout, environment, role, etc.).
{ "command": "GetFunctionConfiguration", "params": { "FunctionName": "my-function" } }
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| FunctionName | string | Yes | Function name or ARN |
| Qualifier | string | No | Function version or alias |
Get reserved concurrency settings.
{ "command": "GetFunctionConcurrency", "params": { "FunctionName": "my-function" } }
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| FunctionName | string | Yes | Function name or ARN |
Get code signing configuration.
{ "command": "GetFunctionCodeSigningConfig", "params": { "FunctionName": "my-function" } }
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| FunctionName | string | Yes | Function name or ARN |
Get function URL configuration.
{ "command": "GetFunctionUrlConfig", "params": { "FunctionName": "my-function" } }
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| FunctionName | string | Yes | Function name or ARN |
Get the resource-based policy attached to a function.
{ "command": "GetPolicy", "params": { "FunctionName": "my-function" } }
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| FunctionName | string | Yes | Function name or ARN |
Get Lambda account-level settings and limits.
{ "command": "GetAccountSettings", "params": {} }
Parameters: None required.
Invoke a Lambda function.
{ "command": "Invoke", "params": { "FunctionName": "my-function", "Payload": "{\"key\":\"value\"}", "InvocationType": "RequestResponse", "LogType": "Tail" } }
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| FunctionName | string | Yes | Function name or ARN |
| Payload | string | No | JSON string payload to pass to function |
| InvocationType | string | No | Event (async), RequestResponse (sync), DryRun (validate) |
| LogType | string | No | None or Tail (include execution log in response) |
| Qualifier | string | No | Function version or alias |
| ClientContext | string | No | Base64-encoded client context data |
Update a function's deployment package.
{ "command": "UpdateFunctionCode", "params": { "FunctionName": "my-function", "S3Bucket": "code-bucket", "S3Key": "code.zip", "Publish": true } }
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| FunctionName | string | Yes | Function name or ARN |
| ZipFile | string | No | Base64-encoded zip file containing function code |
| S3Bucket | string | No | S3 bucket containing the function code |
| S3Key | string | No | S3 object key for the function code |
| S3ObjectVersion | string | No | S3 object version |
| ImageUri | string | No | URI of a container image in Amazon ECR |
| Publish | boolean | No | Publish a new version after updating |
| DryRun | boolean | No | Validate without updating |
| RevisionId | string | No | Update only if revision ID matches |
| Architectures | array of strings | No | Instruction set: x86_64 or arm64 |
Create a new Lambda function.
{ "command": "CreateFunction", "params": { "FunctionName": "my-func", "Runtime": "nodejs18.x", "Role": "arn:aws:iam::123456789012:role/LambdaRole", "Handler": "index.handler", "Code": { "S3Bucket": "code-bucket", "S3Key": "code.zip" } } }
Update function configuration.
{ "command": "UpdateFunctionConfiguration", "params": { "FunctionName": "my-func", "MemorySize": 512, "Timeout": 30 } }
Delete a function.
{ "command": "DeleteFunction", "params": { "FunctionName": "my-func" } }
Create an event source mapping.
{ "command": "CreateEventSourceMapping", "params": { "FunctionName": "my-func", "EventSourceArn": "arn:aws:sqs:us-east-1:123456789012:queue", "StartingPosition": "LATEST" } }
Add a resource-based permission.
{ "command": "AddPermission", "params": { "FunctionName": "my-func", "StatementId": "sns-invoke", "Action": "lambda:InvokeFunction", "Principal": "sns.amazonaws.com", "SourceArn": "arn:aws:sns:us-east-1:123456789012:topic" } }
Create a function URL.
{ "command": "CreateFunctionUrlConfig", "params": { "FunctionName": "my-func", "AuthType": "NONE" } }
Set reserved concurrency.
{ "command": "PutFunctionConcurrency", "params": { "FunctionName": "my-func", "ReservedConcurrentExecutions": 10 } }
Publish a new version.
{ "command": "PublishVersion", "params": { "FunctionName": "my-func" } }
Create an alias for a version.
{ "command": "CreateAlias", "params": { "FunctionName": "my-func", "Name": "prod", "FunctionVersion": "1" } }
Update an alias.
{ "command": "UpdateAlias", "params": { "FunctionName": "my-func", "Name": "prod", "FunctionVersion": "2" } }
Delete an alias.
{ "command": "DeleteAlias", "params": { "FunctionName": "my-func", "Name": "prod" } }
Publish a new layer version.
{ "command": "PublishLayerVersion", "params": { "LayerName": "my-layer", "Content": { "S3Bucket": "code-bucket", "S3Key": "layer.zip" } } }
List aliases for a function.
{ "command": "ListAliases", "params": { "FunctionName": "my-function" } }
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| FunctionName | string | Yes | Function name or ARN |
Get details of a specific alias.
{ "command": "GetAlias", "params": { "FunctionName": "my-function", "Name": "prod" } }
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| FunctionName | string | Yes | Function name or ARN |
| Name | string | Yes | Alias name |
List published versions of a function.
{ "command": "ListVersionsByFunction", "params": { "FunctionName": "my-function" } }
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| FunctionName | string | Yes | Function name or ARN |
List event source mappings for a function.
{ "command": "ListEventSourceMappings", "params": { "FunctionName": "my-function" } }
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| FunctionName | string | No | Function name or ARN |
| EventSourceArn | string | No | ARN of event source (SQS, DynamoDB, Kinesis, etc.) |
Get details of an event source mapping.
{ "command": "GetEventSourceMapping", "params": { "UUID": "12345678-1234-1234-1234-123456789012" } }
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| UUID | string | Yes | Event source mapping UUID |
List versions for a Lambda layer.
{ "command": "ListLayerVersions", "params": { "LayerName": "my-layer" } }
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| LayerName | string | Yes | Layer name |
| CompatibleRuntime | string | No | Filter by compatible runtime |
| CompatibleArchitecture | string | No | Filter by compatible architecture |
List functions using a code signing configuration.
{ "command": "ListFunctionsByCodeSigningConfig", "params": { "CodeSigningConfigArn": "arn:..." } }
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| CodeSigningConfigArn | string | Yes | Code signing config ARN |
List tags for a Lambda resource.
{ "command": "ListTags", "params": { "Resource": "arn:aws:lambda:us-east-1:123456789012:function:my-function" } }
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Resource | string | Yes | Function ARN |
Add tags to a Lambda resource.
{ "command": "TagResource", "params": { "Resource": "arn:aws:lambda:...", "Tags": { "env": "prod" } } }
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Resource | string | Yes | Function ARN |
| Tags | object | Yes | Key-value pairs for tags |
Remove tags from a Lambda resource.
{ "command": "UntagResource", "params": { "Resource": "arn:aws:lambda:...", "TagKeys": ["env"] } }
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| Resource | string | Yes | Function ARN |
| TagKeys | array of strings | Yes | Tag keys to remove |
/aws/lambda/{functionName}. Use CloudWatchLogTool with DescribeLogGroups prefix /aws/lambda/ to find themListEventSourceMappings to discover trigger sources. Then use SQSTool, SNSTool, DynamoDBTool to inspect those sourcesAPIGatewayTool GetIntegration to find Lambda targetsGetFunctionConfiguration to find the execution role ARN, then IAMTool GetRole and ListAttachedRolePolicies to inspect permissionsS3Tool to inspect referenced bucketsCloudFormationTool DescribeStackResources