@qpqjs/actionprocessor-aws
v0.10.0
Published
Action processors that run quidproquo stories on AWS Lambda.
Readme
@qpqjs/actionprocessor-aws
The AWS runtime for quidproquo.
A qpq story yields actions, and a processor is the function that actually carries one out. This package maps the qpq action catalogue onto AWS services, and supplies the Lambda handlers that turn an AWS event into a story execution.
You do not usually install this yourself. It arrives as a dependency of @qpqjs/deploy-aws and the CLI.
Actions to services
| Action domain | AWS service |
| --- | --- |
| keyValueStore | DynamoDB |
| file | S3 |
| userDirectory | Cognito |
| queue | SQS |
| eventBus | SNS |
| email | SES v2 |
| config | SSM Parameter Store and Secrets Manager |
| crypto | KMS |
| ai | Bedrock |
| graphDatabase | Neptune, over openCypher |
| metric | CloudWatch, written as embedded metric format log lines rather than api calls |
Everything platform-neutral (dates, guids, http, logging) comes from @qpqjs/actionprocessor-js, and the Node-specific pieces from @qpqjs/actionprocessor-node.
Lambda entry points
The handlers in src/lambdas/ are the other half of the package. Each one adapts a specific AWS event into a story run: API Gateway requests and websocket frames, CloudFront viewer and origin requests, S3 object events, SQS messages, DynamoDB streams, EventBridge schedules and deploy hooks, and the Cognito trigger set for custom auth flows.
There is also a dynamic module loader, which lets a Lambda pull the service's business logic at runtime instead of baking it into the deployment package. That keeps functions warm across deploys and makes rollbacks close to instant.
Naming and config
Resource names are never passed by hand between deploy and runtime. The processors derive them through awsNamingUtils from @qpqjs/config-aws, the same helpers the CDK package uses when it creates the resources, so a lookup at runtime always lands on the name the deploy chose. This package does not export the naming helpers itself; import them from @qpqjs/config-aws.
Status
Pre-1.0. The whole @qpqjs/* family releases in lockstep, so versions that share a number were built and tested together. Expect APIs to move between releases, and pin your versions.
Documentation
License
MIT. See LICENSE.
