Skip to content

Commit 075c93c

Browse files
tbrandtbrandaws
andauthored
Do not delete files in the RAG bucket (#1026)
Co-authored-by: Taichiro Suzuki <[email protected]>
1 parent 9bf5549 commit 075c93c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

packages/cdk/lib/construct/rag.ts

+1
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ export class Rag extends Construct {
187187
'docs/bedrock-ug.pdf.metadata.json',
188188
'docs/nova-ug.pdf.metadata.json',
189189
],
190+
prune: false,
190191
memoryLimit: 1024,
191192
});
192193

packages/cdk/lib/rag-knowledge-base-stack.ts

+1
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@ export class RagKnowledgeBaseStack extends Stack {
447447
destinationBucket: dataSourceBucket,
448448
// There is a possibility that access logs are still in the same Bucket from the previous configuration, so this setting is left.
449449
exclude: ['AccessLogs/*', 'logs*'],
450+
prune: false,
450451
memoryLimit: 1024,
451452
});
452453

packages/cdk/test/__snapshots__/generative-ai-use-cases.test.ts.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ exports[`GenerativeAiUseCases matches the snapshot 2`] = `
717717
"logs*",
718718
],
719719
"OutputObjectKeys": true,
720-
"Prune": true,
720+
"Prune": false,
721721
"ServiceToken": {
722722
"Fn::GetAtt": [
723723
"CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1024MiBB049752D",
@@ -15599,7 +15599,7 @@ exports[`GenerativeAiUseCases matches the snapshot 5`] = `
1559915599
"docs/nova-ug.pdf.metadata.json",
1560015600
],
1560115601
"OutputObjectKeys": true,
15602-
"Prune": true,
15602+
"Prune": false,
1560315603
"ServiceToken": {
1560415604
"Fn::GetAtt": [
1560515605
"CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1024MiBB049752D",

0 commit comments

Comments
 (0)