11ai-operator-aws-cli-v2-lambda

AWS CLI v2 operator

Inspect, invoke, update, publish, and troubleshoot AWS Lambda functions with explicit aliases, versions, payloads, and logs. Use when a function fails, needs a controlled test, or requires a carefully scoped deployment change.

terminal
$ npx skills add rj11io/11ai --skill 11ai-operator-aws-cli-v2-lambda

Try it — say this to your agent

Use 11ai-operator-aws-cli-v2-lambda for this task.

The full playbook · v0/plugins/11ai-operator-aws-cli-v2/skills/11ai-operator-aws-cli-v2-lambda/SKILL.md

AWS Lambda

Version baseline: AWS CLI v2, using the latest stable v2 patch available for the host platform (2.36.x at this review). Reject AWS CLI v1-only behavior and inspect aws --version plus the live v2 command help before composing commands.

Resolve the function name or ARN, alias or version, account, region, invocation type, and payload before acting. An invocation can mutate downstream systems even when Lambda itself is not changed.

Inspect first

aws lambda list-functions --profile PROFILE --region REGION
aws lambda get-function --function-name FUNCTION_OR_ARN --profile PROFILE --region REGION
aws lambda get-function-configuration --function-name FUNCTION_OR_ARN --qualifier ALIAS_OR_VERSION --profile PROFILE --region REGION
aws lambda list-aliases --function-name FUNCTION_OR_ARN --profile PROFILE --region REGION
aws lambda list-event-source-mappings --function-name FUNCTION_OR_ARN --profile PROFILE --region REGION
aws lambda get-policy --function-name FUNCTION_OR_ARN --profile PROFILE --region REGION

Inspect runtime, handler, architecture, memory, timeout, environment variable names (not values), layers, VPC configuration, role ARN, reserved concurrency, last update status, and code SHA. Use CloudWatch logs for execution evidence.

Invoke safely

aws lambda invoke is a real application action. Before running it, state the target qualifier, payload classification, expected downstream effects, and whether the request is synchronous:

aws lambda invoke \
  --function-name FUNCTION_OR_ARN \
  --qualifier ALIAS_OR_VERSION \
  --invocation-type RequestResponse \
  --payload fileb://payload.json \
  --cli-binary-format raw-in-base64-out \
  response.json \
  --profile PROFILE \
  --region REGION

Never invent a production payload, expose response data containing secrets, or use Event asynchronously when the user expects an immediate result. Review the function response, FunctionError, status code, and corresponding log stream.

Deployment changes

update-function-code, update-function-configuration, publish-version, alias updates, event-source changes, concurrency changes, and permission changes are mutating. Use the project’s artifact and deployment conventions; do not upload arbitrary local code or edit environment variables by guesswork.

After an approved update, verify LastUpdateStatus, code SHA or version, alias routing, logs, error rate, and the original behavior. If the problem is a timeout, throttling, dependency, permission, or VPC issue, diagnose the boundary before changing memory, timeout, or IAM permissions.

Want the source?

This page renders the skill's markdown straight from the repository.

Open on GitHub
More AWS CLI v2 operator skills