generators/aws-containers/prompts.js
function askPerformances() {
    if (this.abort) return null;
    const done = this.async();
    const chainPromises = index => {
        if (index === this.appConfigs.length) {
            done();
            return null;
        }
        const config = this.appConfigs[index];
        const awsConfig = this.aws.apps.find(a => a.baseName === config.baseName) || { baseName: config.baseName };
        return promptPerformance.call(this, config, awsConfig).then(performance => {
            awsConfig.performance = performance;

            awsConfig.fargate = { ...awsConfig.fargate, ...PERF_TO_CONFIG[performance].fargate };
            awsConfig.database = { ...awsConfig.database, ...PERF_TO_CONFIG[performance].database };

            _.remove(this.aws.apps, a => _.isEqual(a, awsConfig));
            this.aws.apps.push(awsConfig);
            return chainPromises(index + 1);
        });
    };

    return chainPromises(0);
}
function askPerformances() {
    if (this.abort) return null;
    const done = this.async();
    const chainPromises = index => {
        if (index === this.appConfigs.length) {
            done();
            return null;
        }
        const config = this.appConfigs[index];
        const awsConfig = this.aws.apps.find(a => a.baseName === config.baseName) || { baseName: config.baseName };
        return promptPerformance.call(this, config, awsConfig).then(performance => {
            awsConfig.performance = performance;

            awsConfig.fargate = { ...awsConfig.fargate, ...PERF_TO_CONFIG[performance].fargate };
            awsConfig.database = { ...awsConfig.database, ...PERF_TO_CONFIG[performance].database };

            _.remove(this.aws.apps, a => _.isEqual(a, awsConfig));
            this.aws.apps.push(awsConfig);
            return chainPromises(index + 1);
        });
    };

    return chainPromises(0);
}
function askPerformances ( ) { if ( this . abort ) return null ; const done = this . async ( ) ; const chainPromises = index => { if ( index === this . appConfigs . length ) { done ( ) ; return null ; } const config = this . appConfigs [ index ] ; const awsConfig = this . aws . apps . find ( a => a . baseName === config . baseName ) || { baseName : config . baseName } ; return promptPerformance . call ( this , config , awsConfig ) . then ( performance => { awsConfig . performance = performance ; awsConfig . fargate = { ... awsConfig . fargate , ... PERF_TO_CONFIG [ performance ] . fargate } ; awsConfig . database = { ... awsConfig . database , ... PERF_TO_CONFIG [ performance ] . database } ; _ . remove ( this . aws . apps , a => _ . isEqual ( a , awsConfig ) ) ; this . aws . apps . push ( awsConfig ) ; return chainPromises ( index + 1 ) ; } ) ; } ; return chainPromises ( 0 ) ; }
As user to select AWS performance.
As user to select AWS performance .