https://github.com/lhr0909/duckling-lambda
https://github.com/lhr0909/duckling-lambda
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lhr0909/duckling-lambda
- Owner: lhr0909
- Created: 2023-03-13T14:07:20.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-13T15:45:42.000Z (over 2 years ago)
- Last Synced: 2025-01-11T16:13:30.837Z (9 months ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# duckling lambda
在 aws 服务上通过 lambda 部署 facebook 的 duckling 服务
aws 命令工具操作都依赖 aws 访问凭证
```shell
aws configureAWS Access Key ID [None]: AKIAIOSFODNN7EXAMPLE
AWS Secret Access Key [None]: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Default region name [None]: us-west-2
Default output format [None]: json
```## ecr
- `make image`: 制作镜像
- `make push`: 推送到 aws 镜像服务## cdk
- `cdk bootstrap`: 初始化项目
- `cdk deploy`: 部署服务到 aws
- `cdk destroy`: 资源清理## sam
通过 sam 部署 duckling lambda,包含镜像制作,使用这个方案可以跳过 ecr 的镜像制作
- `sam init`: 初始化项目
- `sam build`: 构建应用程序
- `sam deploy --guided`: 部署服务到 aws
- `sam delete`: 资源清理## 参考链接
- facebook duckling:
- aws-lambda-web-adapter: