pwf-aws-lambda-deploy

pwf-aws-lambda-deploy is a command for coding agents from J-Pster/Psters_AI_Workflow. It costs 43 tokens per session (869 once invoked), scanned A, original, MIT.

A deployment procedure for AWS Lambda functions using project-approved shell scripts. AWS Lambda runs code in response to events without managing servers, and AWS SSO provides the required login.

In plain words
What is it for?
Use it to inspect a Lambda repository's scripts, log in with AWS SSO, and deploy one or all functions with the required profile and region options.
Why use it?
It prevents deployment through an unapproved infrastructure-as-code route and requires the repository's guaranteed scripts to be checked first.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/j-pster/psters_ai_workflow/pwf-aws-lambda-deploy
Clone the repo
git clone --depth 1 https://github.com/J-Pster/Psters_AI_Workflow

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pwf-aws-lambda-deploy

README.md
[![agentmods](https://agentmods.dev/badge/commands/j-pster/psters_ai_workflow/pwf-aws-lambda-deploy.svg)](https://agentmods.dev/commands/j-pster/psters_ai_workflow/pwf-aws-lambda-deploy)
Your own site
<a href="https://agentmods.dev/commands/j-pster/psters_ai_workflow/pwf-aws-lambda-deploy"><img src="https://agentmods.dev/badge/commands/j-pster/psters_ai_workflow/pwf-aws-lambda-deploy.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 869 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00043 $0.00869
Opus 5 $0.00022 $0.00434
Sonnet 5 $0.00009 $0.00174
Haiku 4.5 $0.00004 $0.00087

Measured 5d ago against content hash b0e0a82e49eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pwf-aws-lambda-deploy scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/psters-ai-workflow/commands/pwf-aws-lambda-deploy.md · 93 lines

How it starts

The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Deploy AWS Lambda with Guaranteed Scripts

Use this command to deploy Lambda changes safely through project-approved deploy scripts (default AWS CLI flow, no CDK/IaC deploy path unless project overrides allow).

Operational guardrails source: rules/operational-guardrails.mdc Optional project override source: docs/workflow/operational-overrides.md

Step 1: Detect script availability

From the target Lambda repo root, inspect ./scripts/ and find the guaranteed deploy script(s):

  • deploy-lambda-guaranteed.sh
  • deploy-all-lambdas-guaranteed.sh

Do not continue until script availability is clear.

Rule: Use the guaranteed deploy scripts

Each Lambda repo that has deploy scripts must use them:

  • Single function: ./scripts/deploy-lambda-guaranteed.sh <lambda-name> [--profile PROFILE] [--region REGION]
  • All functions in repo: ./scripts/deploy-all-lambdas-guaranteed.sh [--profile PROFILE] [--region REGION]

Script names may vary by repo (e.g. deploy-lambda-guaranteed.sh, deploy-all-lambdas-guaranteed.sh). Look in that repo's scripts/ folder.

Step 2: If scripts are missing, suggest bootstrap first

If no guaranteed deploy script exists, stop deploy execution and ask for user approval to scaffold defaults.

Use this prompt:

No guaranteed deploy script was found in ./scripts. I suggest creating standard deploy scripts now (single Lambda and deploy-all), based on the plugin defaults. Should I create them for this repo?

If approved, create in the target repo:

  • ./scripts/deploy-lambda-guaranteed.sh
  • ./scripts/deploy-all-lambdas-guaranteed.sh

Bootstrap templates:

  • assets/lambda-deploy/deploy-lambda-guaranteed.template.sh
  • assets/lambda-deploy/deploy-all-lambdas-guaranteed.template.sh

Then:

  1. chmod +x both scripts.
  2. Validate placeholder values and lambda list with the user.
  3. Execute deploy using the guaranteed script path only.

Prerequisite (default policy): AWS SSO login

Before AWS CLI command(s), run:

aws sso login --profile <aws-profile>

Read the full file on GitHub · 93 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 93 lines · 43 tokens per session scan A b0e0a82e49eb

Subscribe to this mod's changes

pwf-aws-lambda-deploy is a command published in the GitHub repository J-Pster/Psters_AI_Workflow (290 stars, last pushed 5mo ago), licensed MIT. It adds 43 tokens to every session and 869 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.