Files
Xiyuan Chen 754009933e Fix/update-cdk-code (#2)
* 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>
2024-08-27 11:58:27 +08:00

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,
});
}
}