AgentSkillsCN

awsflow-lambda

使用 awsflow 管理 AWS Lambda 函数。列出函数,获取配置,调用函数,更新代码,管理别名/版本,检查事件源映射、层、标签、函数 URL、并发控制,以及代码签名。

SKILL.md
--- frontmatter
name: awsflow-lambda
description: Manage AWS Lambda functions using awsflow. List functions, get configuration, invoke functions, update code, manage aliases/versions, inspect event source mappings, layers, tags, function URLs, concurrency, and code signing.

Awsflow Lambda

Manage AWS Lambda functions, event source mappings, aliases, versions, and layers.

When to Use This Skill

Use this skill when the user:

  • Asks about Lambda functions or serverless
  • Wants to invoke a Lambda function
  • Needs to update function code
  • Wants to inspect function configuration, concurrency, or URLs
  • Asks about event source mappings (SQS, SNS, DynamoDB, Kinesis triggers)
  • Needs to manage aliases, versions, or layers
  • Wants to tag or untag Lambda resources

Tool: LambdaTool

Execute AWS Lambda commands including event source mappings. ALWAYS provide params object.

Commands

ListFunctions

List Lambda functions.

json
{ "command": "ListFunctions", "params": { "MaxItems": 50 } }

Parameters:

ParameterTypeRequiredDescription
FunctionVersionstringNoSet to ALL to include all versions
MarkerstringNoPagination marker from previous response
MaxItemsnumberNoMaximum number of functions to return
MasterRegionstringNoFor Lambda@Edge, the region of the master function

GetFunction

Get function details including code location.

json
{ "command": "GetFunction", "params": { "FunctionName": "my-function" } }

Parameters:

ParameterTypeRequiredDescription
FunctionNamestringYesFunction name or ARN
QualifierstringNoFunction version or alias

GetFunctionConfiguration

Get function configuration (runtime, handler, memory, timeout, environment, role, etc.).

json
{ "command": "GetFunctionConfiguration", "params": { "FunctionName": "my-function" } }

Parameters:

ParameterTypeRequiredDescription
FunctionNamestringYesFunction name or ARN
QualifierstringNoFunction version or alias

GetFunctionConcurrency

Get reserved concurrency settings.

json
{ "command": "GetFunctionConcurrency", "params": { "FunctionName": "my-function" } }

Parameters:

ParameterTypeRequiredDescription
FunctionNamestringYesFunction name or ARN

GetFunctionCodeSigningConfig

Get code signing configuration.

json
{ "command": "GetFunctionCodeSigningConfig", "params": { "FunctionName": "my-function" } }

Parameters:

ParameterTypeRequiredDescription
FunctionNamestringYesFunction name or ARN

GetFunctionUrlConfig

Get function URL configuration.

json
{ "command": "GetFunctionUrlConfig", "params": { "FunctionName": "my-function" } }

Parameters:

ParameterTypeRequiredDescription
FunctionNamestringYesFunction name or ARN

GetPolicy

Get the resource-based policy attached to a function.

json
{ "command": "GetPolicy", "params": { "FunctionName": "my-function" } }

Parameters:

ParameterTypeRequiredDescription
FunctionNamestringYesFunction name or ARN

GetAccountSettings

Get Lambda account-level settings and limits.

json
{ "command": "GetAccountSettings", "params": {} }

Parameters: None required.

Invoke

Invoke a Lambda function.

json
{ "command": "Invoke", "params": { "FunctionName": "my-function", "Payload": "{\"key\":\"value\"}", "InvocationType": "RequestResponse", "LogType": "Tail" } }

Parameters:

ParameterTypeRequiredDescription
FunctionNamestringYesFunction name or ARN
PayloadstringNoJSON string payload to pass to function
InvocationTypestringNoEvent (async), RequestResponse (sync), DryRun (validate)
LogTypestringNoNone or Tail (include execution log in response)
QualifierstringNoFunction version or alias
ClientContextstringNoBase64-encoded client context data

UpdateFunctionCode

Update a function's deployment package.

json
{ "command": "UpdateFunctionCode", "params": { "FunctionName": "my-function", "S3Bucket": "code-bucket", "S3Key": "code.zip", "Publish": true } }

Parameters:

ParameterTypeRequiredDescription
FunctionNamestringYesFunction name or ARN
ZipFilestringNoBase64-encoded zip file containing function code
S3BucketstringNoS3 bucket containing the function code
S3KeystringNoS3 object key for the function code
S3ObjectVersionstringNoS3 object version
ImageUristringNoURI of a container image in Amazon ECR
PublishbooleanNoPublish a new version after updating
DryRunbooleanNoValidate without updating
RevisionIdstringNoUpdate only if revision ID matches
Architecturesarray of stringsNoInstruction set: x86_64 or arm64

ListAliases

List aliases for a function.

json
{ "command": "ListAliases", "params": { "FunctionName": "my-function" } }

Parameters:

ParameterTypeRequiredDescription
FunctionNamestringYesFunction name or ARN

GetAlias

Get details of a specific alias.

json
{ "command": "GetAlias", "params": { "FunctionName": "my-function", "Name": "prod" } }

Parameters:

ParameterTypeRequiredDescription
FunctionNamestringYesFunction name or ARN
NamestringYesAlias name

ListVersionsByFunction

List published versions of a function.

json
{ "command": "ListVersionsByFunction", "params": { "FunctionName": "my-function" } }

Parameters:

ParameterTypeRequiredDescription
FunctionNamestringYesFunction name or ARN

ListEventSourceMappings

List event source mappings for a function.

json
{ "command": "ListEventSourceMappings", "params": { "FunctionName": "my-function" } }

Parameters:

ParameterTypeRequiredDescription
FunctionNamestringNoFunction name or ARN
EventSourceArnstringNoARN of event source (SQS, DynamoDB, Kinesis, etc.)

GetEventSourceMapping

Get details of an event source mapping.

json
{ "command": "GetEventSourceMapping", "params": { "UUID": "12345678-1234-1234-1234-123456789012" } }

Parameters:

ParameterTypeRequiredDescription
UUIDstringYesEvent source mapping UUID

ListLayerVersions

List versions for a Lambda layer.

json
{ "command": "ListLayerVersions", "params": { "LayerName": "my-layer" } }

Parameters:

ParameterTypeRequiredDescription
LayerNamestringYesLayer name
CompatibleRuntimestringNoFilter by compatible runtime
CompatibleArchitecturestringNoFilter by compatible architecture

ListFunctionsByCodeSigningConfig

List functions using a code signing configuration.

json
{ "command": "ListFunctionsByCodeSigningConfig", "params": { "CodeSigningConfigArn": "arn:..." } }

Parameters:

ParameterTypeRequiredDescription
CodeSigningConfigArnstringYesCode signing config ARN

ListTags

List tags for a Lambda resource.

json
{ "command": "ListTags", "params": { "Resource": "arn:aws:lambda:us-east-1:123456789012:function:my-function" } }

Parameters:

ParameterTypeRequiredDescription
ResourcestringYesFunction ARN

TagResource

Add tags to a Lambda resource.

json
{ "command": "TagResource", "params": { "Resource": "arn:aws:lambda:...", "Tags": { "env": "prod" } } }

Parameters:

ParameterTypeRequiredDescription
ResourcestringYesFunction ARN
TagsobjectYesKey-value pairs for tags

UntagResource

Remove tags from a Lambda resource.

json
{ "command": "UntagResource", "params": { "Resource": "arn:aws:lambda:...", "TagKeys": ["env"] } }

Parameters:

ParameterTypeRequiredDescription
ResourcestringYesFunction ARN
TagKeysarray of stringsYesTag keys to remove

Related Services

  • Lambda → CloudWatch Logs: Every Lambda function writes logs to /aws/lambda/{functionName}. Use CloudWatchLogTool with DescribeLogGroups prefix /aws/lambda/ to find them
  • Lambda → SQS/SNS/DynamoDB/Kinesis: Use ListEventSourceMappings to discover trigger sources. Then use SQSTool, SNSTool, DynamoDBTool to inspect those sources
  • Lambda → API Gateway: API Gateway integrations invoke Lambda. Use APIGatewayTool GetIntegration to find Lambda targets
  • Lambda → IAM: Use GetFunctionConfiguration to find the execution role ARN, then IAMTool GetRole and ListAttachedRolePolicies to inspect permissions
  • Lambda → S3: Functions often read/write S3. Use S3Tool to inspect referenced buckets
  • Lambda → Step Functions: Lambda is commonly used as Step Functions task states
  • Lambda → CloudFormation: Serverless functions managed by CloudFormation/SAM — use CloudFormationTool DescribeStackResources