@@ -199,6 +199,19 @@ export async function getConfigFromWizard({
199
199
} ;
200
200
}
201
201
202
+ // do you want to manually approve AWS infrastructure changes?
203
+ const answersApproval = await inquirer . prompt ( [
204
+ {
205
+ type : 'confirm' ,
206
+ name : 'approval' ,
207
+ message :
208
+ 'Before debugging, do you want to review and manually approve AWS infrastructure changes, like adding a Lambda layer?' ,
209
+ default : currentConfig ?. approval === true ,
210
+ } ,
211
+ ] ) ;
212
+
213
+ answers = { ...answers , ...answersApproval } ;
214
+
202
215
const answersAws = await inquirer . prompt ( [
203
216
{
204
217
type : 'input' ,
@@ -388,6 +401,8 @@ export default {
388
401
observable: ${ config . observable } ,
389
402
// Observable mode interval
390
403
interval: ${ config . interval === defaultObservableInterval ? undefined : config . interval } ,
404
+ // Approval required for AWS infrastructure changes
405
+ approvalRequired: ${ config . approval } ,
391
406
// Verbose logging
392
407
verbose: ${ config . verbose } ,
393
408
// Modify Lambda function list or support custom framework
@@ -434,6 +449,7 @@ function getConfigFromAnswers(answers: any): LldConfigCliArgs {
434
449
answers . interval !== undefined
435
450
? answers . interval
436
451
: defaultObservableInterval ,
452
+ approvalRequired : answers . approvalRequired ,
437
453
verbose : answers . verbose ,
438
454
interactive : answers . interactive ,
439
455
gitignore : answers . gitignore ,
0 commit comments