mirror of
https://github.com/langgenius/aws-cdk-for-dify.git
synced 2026-07-01 20:14:06 -04:00
754009933e5bd564b30fa53b9792015c43a91e7a
* fix: invalid ec2 instacne type * fix: stack bug in cdk * feat: support custom vpc * fix: add env for vpc --------- Co-authored-by: GareArc <chen4851@purude.edu>
Dify Enterprise on AWS
Deploy Dify Enterprise on AWS using CDK.
Components
Testing Deployment
| Component | Helm Chart Value | Count | vCPU | Memory (GB) | Storage (GB) | Notes |
|---|---|---|---|---|---|---|
| K8S Worker Node | 1 | 4 | 16 | 100 | ||
| S3 | persistence | 1 | ||||
| Postgres DB (Aurora) Cluster | externalPostgres | 2 | 2 | 4 | ||
| Redis DB | externalRedis | 1 | 2 | 1.37 | ||
| EC2 (for Vector DB) | vectorDB | 1 | 4 | 8 | 100 |
Production Deployment
| Component | Helm Chart Value | Count | vCPU | Memory (GB) | Storage (GB) | Notes |
|---|---|---|---|---|---|---|
| K8S Worker Node | 6 | 8 | 32 | 100 | ||
| S3 | persistence | 1 | ||||
| Postgres DB (Aurora) Cluster | externalPostgres | 2 | 4 | 32 | ||
| Redis DB | externalRedis | 1 | 2 | 3.09 | ||
| EC2 (for Vector DB) | vectorDB | 3 | 8 | 64 | 100 |
Deploy
Prerequisites
-
环境安装: NodeJS
npm install -
AWS 配置
aws configure -
(如果您使用的是AWS CN服务) 配置AWS EKS Helm仓库
配置环境变量
AWS_LOAD_BALANCER_REPO,具体url请联系我们。 -
CDK bootstrap
npm run init -
CDK deploy
-
部署Testing环境
npm run deploy-test -
部署Production环境
npm run deploy-prod -
全部部署
npm run deploy-all
-
-
CDK destroy
npm run destroy
Description
Languages
TypeScript
94%
JavaScript
6%
