@@ -199,6 +199,19 @@ export async function getConfigFromWizard({
199199 } ;
200200 }
201201
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+
202215 const answersAws = await inquirer . prompt ( [
203216 {
204217 type : 'input' ,
@@ -388,6 +401,8 @@ export default {
388401 observable: ${ config . observable } ,
389402 // Observable mode interval
390403 interval: ${ config . interval === defaultObservableInterval ? undefined : config . interval } ,
404+ // Approval required for AWS infrastructure changes
405+ approvalRequired: ${ config . approval } ,
391406 // Verbose logging
392407 verbose: ${ config . verbose } ,
393408 // Modify Lambda function list or support custom framework
@@ -434,6 +449,7 @@ function getConfigFromAnswers(answers: any): LldConfigCliArgs {
434449 answers . interval !== undefined
435450 ? answers . interval
436451 : defaultObservableInterval ,
452+ approvalRequired : answers . approvalRequired ,
437453 verbose : answers . verbose ,
438454 interactive : answers . interactive ,
439455 gitignore : answers . gitignore ,
0 commit comments