https://github.com/huanshenyi/mastra-queue-workflow
Mastra Lambda CDK
https://github.com/huanshenyi/mastra-queue-workflow
cdk lambda mastra
Last synced: 3 months ago
JSON representation
Mastra Lambda CDK
- Host: GitHub
- URL: https://github.com/huanshenyi/mastra-queue-workflow
- Owner: huanshenyi
- Created: 2025-05-27T03:29:50.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-06-04T08:47:47.000Z (4 months ago)
- Last Synced: 2025-06-04T15:58:21.200Z (4 months ago)
- Topics: cdk, lambda, mastra
- Language: TypeScript
- Homepage:
- Size: 271 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Welcome to your CDK TypeScript project
This is a blank project for CDK development with TypeScript.
The `cdk.json` file tells the CDK Toolkit how to execute your app.
## Useful commands
- `npm run build` compile typescript to js
- `npm run watch` watch for changes and compile
- `npm run test` perform the jest unit tests
- `npx cdk deploy` deploy this stack to your default AWS account/region
- `npx cdk diff` compare deployed stack with current state
- `npx cdk synth` emits the synthesized CloudFormation template## lambda-adapterの利用条件
cdkのデプロイする前に実行してください```bash
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws
```## Agent 呼び出し
```bash
POST ${MastraFunctionUrl}/api/agents/weatherAgent/generate
```リクエストボディ
```json
{
"messages": "hello"
}
```## ワークフロー呼び出し
1: ワークフローの実行を作成
```bash
POST ${MastraFunctionUrl}/api/workflows/weatherWorkflow/create-run
```レスポンス
```json
{
"runId": "xxx"
}
```2: ワークフローを開始
```bash
GET ${MastraFunctionUrl}/api/workflows/weatherWorkflow/start?runId=${runId}
```リクエストボディ
```json
{
"inputData": { "city": "tokyo" }
}
```