constructor()

in infra/common-infra/vpc-infra-stack.ts [11:30]


    constructor(appContext: AppContext, stackConfig: any) {
        super(appContext, stackConfig);

        const vpc = this.createVpc(
            this.stackConfig.VPCName,
            this.stackConfig.VPCMaxAzs,
            this.stackConfig.VPCCIDR,
            this.stackConfig.NATGatewayCount);
        this.putVariable('VpcName', `${this.stackName}/${this.stackConfig.VPCName}`)

        const ecsCluster = this.createEcsCluster(
            this.stackConfig.ECSClusterName,
            vpc);
        this.putParameter('ECSClusterName', ecsCluster.clusterName);

        const cloudMapNamespacce = this.createCloudMapNamespace(ecsCluster);
        this.putParameter('CloudMapNamespaceName', cloudMapNamespacce.namespaceName);
        this.putParameter('CloudMapNamespaceArn', cloudMapNamespacce.namespaceArn);
        this.putParameter('CloudMapNamespaceId', cloudMapNamespacce.namespaceId);
    }