Skip to content

Commit

Permalink
feat(export): limit caching to 72 hours (#1040)
Browse files Browse the repository at this point in the history
Update signed url ttl to 48 hours
  • Loading branch information
kschelonka authored Feb 13, 2025
1 parent 4490ca4 commit 859dc39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions infrastructure/account-data-deleter/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,17 +112,17 @@ class AccountDataDeleter extends TerraformStack {
filter: {
prefix: `${partsPrefix}/`,
},
id: 'list-export-part-15days-expire',
id: 'list-export-part-10days-expire',
status: 'Enabled',
expiration: { days: 15 },
expiration: { days: 10 },
},
{
filter: {
prefix: `${archivesPrefix}/`,
},
id: 'list-export-archive-30days-expire',
id: 'list-export-archive-3days-expire',
status: 'Enabled',
expiration: { days: 30 },
expiration: { days: 3 },
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion servers/account-data-deleter/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export const config = {
partsPrefix: process.env.LIST_EXPORT_PARTS_PREFIX || '',
archivePrefix: process.env.LIST_EXPORT_ARCHIVE_PREFIX || '',
queryLimit: 10000,
signedUrlExpiry: 60 * 60 * 24 * 7, // 7 days in seconds,
signedUrlExpiry: 60 * 60 * 24 * 2, // 2 days in seconds,
presignedIamUserCredentials:
process.env.EXPORT_SIGNEDURL_USER_ACCESS_KEY_ID &&
process.env.EXPORT_SIGNEDURL_USER_SECRET_KEY
Expand Down

0 comments on commit 859dc39

Please sign in to comment.