Skip to content

Commit 218cf68

Browse files
author
Austin Johnson
committed
Fix S3 cleanup to not delete on update
1 parent d321835 commit 218cf68

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/website/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
font-src 'self' fonts.gstatic.com;
1515
upgrade-insecure-requests;">
1616
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
17-
<title>LexWebUi Demo</title>
17+
<title>LexWebUi</title>
1818
<!-- empty favicon to avoid 404 -->
1919
<link href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQEAYAAABPYyMiAAAABmJLR0T///////8JWPfcAAAACXBIWXMAAABIAAAASABGyWs+AAAAF0lEQVRIx2NgGAWjYBSMglEwCkbBSAcACBAAAeaR9cIAAAAASUVORK5CYII=" rel="icon" type="image/x-icon" />
2020

templates/codebuild-deploy.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,6 +1211,8 @@ Resources:
12111211
# custom resource to cleanup S3 buckets
12121212
S3Cleanup:
12131213
Type: Custom::S3Cleanup
1214+
DeletionPolicy: Retain
1215+
UpdateReplacePolicy: Retain
12141216
Condition: ShouldCleanupBuckets
12151217
Properties:
12161218
ServiceToken: !GetAtt S3CleanupLambda.Arn

0 commit comments

Comments
 (0)