import 'source-map-support/register' ; import cdk = require ( '@aws-cdk/cdk' ) ; import { HttpServiceStack } from '../lib/http-service-stack' ; import { ClusterStack } from '../lib/cluster-stack' ; import { CodePipelineStack } from '../lib/code-pipeline-stack' ; const app = new cdk . App ( ) ; const clusterStack = new ClusterStack ( app , 'ClusterStack' ) ; new HttpServiceStack ( app , 'HttpServiceStack' , { vpc : clusterStack . vpc , cluster : clusterStack . cluster , } ) ; const codePipelineStack = new CodePipelineStack ( app , 'CodePipelineStack' ) ; new HttpServiceStack ( app , 'ProdHttpServiceStack' , { vpc : clusterStack . vpc , cluster : clusterStack . cluster , autoDeploy : false , image : codePipelineStack . builtImage , } ) ;