Skip to content

Instantly share code, notes, and snippets.

@ColeMurray
Created August 13, 2023 03:45
Show Gist options
  • Save ColeMurray/817141f40ec69a575b2fa1f4348f871c to your computer and use it in GitHub Desktop.
Save ColeMurray/817141f40ec69a575b2fa1f4348f871c to your computer and use it in GitHub Desktop.
Deployment stack for serverless express cdk project
import {Stage, StageProps} from "aws-cdk-lib";
import {Construct} from "constructs";
import {DeploymentStack} from "./stack";
interface BackendServiceStageProps extends StageProps {
envVars?: Record<string, string>,
}
export class BackendServiceStage extends Stage {
constructor(scope: Construct, id: string, props: BackendServiceStageProps) {
super(scope, id, props);
new DeploymentStack(this, 'BackendStack', {
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment