Skip to content

Commit 32eb053

Browse files
committed
feat: add ttl time configuration
1 parent 51bd773 commit 32eb053

File tree

3 files changed

+22
-17
lines changed

3 files changed

+22
-17
lines changed

lib/osml/model_runner/mr_dataplane.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@ export class MRDataplaneConfig extends BaseConfig {
125125
*/
126126
public DDB_TTL_ATTRIBUTE: string;
127127

128+
/**
129+
* The time to live in days for DDB records used in tables.
130+
* @default undefined
131+
*/
132+
public DDB_TTL_IN_DAYS: string;
133+
128134
/**
129135
* The maximum number of tasks allowed in the cluster.
130136
* @default 40
@@ -767,6 +773,7 @@ export class MRDataplane extends Construct {
767773
} {
768774
let containerEnv = {
769775
AWS_DEFAULT_REGION: props.account.region,
776+
DDB_TTL_IN_DAYS: this.config.DDB_TTL_IN_DAYS,
770777
JOB_TABLE: this.jobStatusTable.table.tableName,
771778
OUTSTANDING_JOBS_TABLE: this.outstandingImageJobsTable.table.tableName,
772779
FEATURE_TABLE: this.featureTable.table.tableName,

package-lock.json

Lines changed: 14 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@typescript-eslint/eslint-plugin": "^8.29.0",
2222
"@typescript-eslint/parser": "^8.29.0",
2323
"aws-cdk": "^2.1007.0",
24-
"aws-cdk-lib": "^2.187.0",
24+
"aws-cdk-lib": "^2.189.1",
2525
"cdk-nag": "^2.35.61",
2626
"constructs": "^10.4.2",
2727
"eslint": "^9.23.0",

0 commit comments

Comments
 (0)