@@ -154,6 +154,7 @@ const embeddingModels: ModelConfig[] = [
154154 options . prefix = config . prefix ;
155155 options . createCMKs = config . createCMKs ;
156156 options . retainOnDelete = config . retainOnDelete ;
157+ options . ddbDeletionProtection = config . ddbDeletionProtection ;
157158 options . vpcId = config . vpc ?. vpcId ;
158159 options . bedrockEnable = config . bedrock ?. enabled ;
159160 options . bedrockRegion = config . bedrock ?. region ;
@@ -321,6 +322,14 @@ async function processCreateOptions(options: any): Promise<void> {
321322 initial : options . retainOnDelete ?? true ,
322323 hint : "It reduces the risk of deleting data. It will however not delete all the resources on cleanup (would require manual removal if relevant)" ,
323324 } ,
325+ {
326+ type : "confirm" ,
327+ name : "ddbDeletionProtection" ,
328+ message :
329+ "Do you want to enable delete protection for your DynamoDB tables?" ,
330+ initial : options . ddbDeletionProtection ?? false ,
331+ hint : "It reduces the risk of accidental deleting your DDB tables. It will however not delete your DDB tables on cleanup." ,
332+ } ,
324333 {
325334 type : "confirm" ,
326335 name : "bedrockEnable" ,
@@ -1200,6 +1209,7 @@ async function processCreateOptions(options: any): Promise<void> {
12001209 prefix : answers . prefix ,
12011210 createCMKs : answers . createCMKs ,
12021211 retainOnDelete : answers . retainOnDelete ,
1212+ ddbDeletionProtection : answers . ddbDeletionProtection ,
12031213 vpc : answers . existingVpc
12041214 ? {
12051215 vpcId : answers . vpcId . toLowerCase ( ) ,
0 commit comments