Skip to content

Commit

Permalink
fix(cwp-template-aws): disable storage ops selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel910 committed Nov 3, 2021
1 parent ea3c63d commit 0835c9b
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions packages/cwp-template-aws/index.js
@@ -1,16 +1,16 @@
const inquirer = require("inquirer");
const setup = require("./setup");

const choices = {
ddb: {
value: "ddb",
name: "DynamoDB"
},
ddbEs: {
value: "ddb-es",
name: "DynamoDB + Elasticsearch"
}
};
// const choices = {
// ddb: {
// value: "ddb",
// name: "DynamoDB"
// },
// ddbEs: {
// value: "ddb-es",
// name: "DynamoDB + Elasticsearch"
// }
// };

const runInquirer = async cwp => {
if (!cwp.interactive) {
Expand Down Expand Up @@ -54,20 +54,20 @@ const runInquirer = async cwp => {
}
]);

const { storageOperations } = await inquirer.prompt([
{
type: "list",
name: "storageOperations",
default: "ddb",
message: `Please choose which storage operations do you want to use with your Webiny project:`,
choices: Object.values(choices)
}
]);
// const { storageOperations } = await inquirer.prompt([
// {
// type: "list",
// name: "storageOperations",
// default: "ddb",
// message: `Please choose which storage operations do you want to use with your Webiny project:`,
// choices: Object.values(choices)
// }
// ]);

return setup({
...cwp,
templateOptions,
storageOperations
storageOperations: "ddb-es"
});
};

Expand Down

0 comments on commit 0835c9b

Please sign in to comment.