mirror of
https://github.com/langgenius/aws-cdk-for-dify.git
synced 2026-07-01 20:14:06 -04:00
754009933e
* 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>
21 lines
565 B
TypeScript
21 lines
565 B
TypeScript
import { StackProps } from "aws-cdk-lib";
|
|
import { IVpc } from "aws-cdk-lib/aws-ec2";
|
|
import { Construct } from "constructs";
|
|
import { config } from "../configs";
|
|
import { DifyStackConstruct } from "./dify-cdk-stack";
|
|
|
|
interface DifyProdStackProps {
|
|
vpc: IVpc;
|
|
extraValues?: object;
|
|
}
|
|
|
|
export class DifyProdStackConstruct extends DifyStackConstruct {
|
|
constructor(scope: Construct, id: string, difyProps: DifyProdStackProps, props: StackProps) {
|
|
super(scope, id, {
|
|
...difyProps,
|
|
config: config.prodConfig,
|
|
}, {
|
|
...props,
|
|
});
|
|
}
|
|
} |