diff --git a/infra/aws/index.ts b/infra/aws/index.ts index 1329a0da0..8cee084b0 100644 --- a/infra/aws/index.ts +++ b/infra/aws/index.ts @@ -734,7 +734,7 @@ const redashDb = new aws.rds.Instance( allocatedStorage: 20, maxAllocatedStorage: 20, engine: "postgres", - engineVersion: "13.10", + engineVersion: "13.13", instanceClass: "db.t3.micro", dbName: redashDbName, password: redashDbPassword, diff --git a/infra/prod/index.ts b/infra/prod/index.ts index b233a5425..a75521c12 100644 --- a/infra/prod/index.ts +++ b/infra/prod/index.ts @@ -987,7 +987,7 @@ const redashDb = new aws.rds.Instance( allocatedStorage: 20, maxAllocatedStorage: 20, engine: "postgres", - engineVersion: "13.10", + engineVersion: "13.13", instanceClass: "db.t3.micro", dbName: redashDbName, password: redashDbPassword, @@ -1314,63 +1314,65 @@ export const frequentAlloScorerDataDumpTaskDefinition = createScheduledTask( envConfig ); -export const frequentScorerDataDumpTaskDefinitionForScorer_335 = createScheduledTask( - "frequent-allo-scorer-data-dump-335", - { - ...baseScorerServiceConfig, - securityGroup: secgrp, - command: [ - "python", - "manage.py", - "scorer_dump_data", - "--config", - "'" + - JSON.stringify([ - { - name: "registry.Score", - filter: { community_id: 335 }, - select_related: ["passport"], - }, - ]) + - "'", - `--s3-uri=s3://${publicDataDomain}/passport_scores/335/`, - // "--summary-extra-args", - // JSON.stringify({ ACL: "public-read" }), - ].join(" "), - scheduleExpression: "cron(*/30 * ? * * *)", // Run the task every 30 min - alertTopic: pagerdutyTopic, - }, - envConfig -); +export const frequentScorerDataDumpTaskDefinitionForScorer_335 = + createScheduledTask( + "frequent-allo-scorer-data-dump-335", + { + ...baseScorerServiceConfig, + securityGroup: secgrp, + command: [ + "python", + "manage.py", + "scorer_dump_data", + "--config", + "'" + + JSON.stringify([ + { + name: "registry.Score", + filter: { community_id: 335 }, + select_related: ["passport"], + }, + ]) + + "'", + `--s3-uri=s3://${publicDataDomain}/passport_scores/335/`, + // "--summary-extra-args", + // JSON.stringify({ ACL: "public-read" }), + ].join(" "), + scheduleExpression: "cron(*/30 * ? * * *)", // Run the task every 30 min + alertTopic: pagerdutyTopic, + }, + envConfig + ); -export const frequentScorerDataDumpTaskDefinitionForScorer_6608 = createScheduledTask( - "frequent-allo-scorer-data-dump-6608", - { - ...baseScorerServiceConfig, - securityGroup: secgrp, - command: [ - "python", - "manage.py", - "scorer_dump_data", - "--config", - "'" + - JSON.stringify([ - { - name: "registry.Score", - filter: { community_id: 6608 }, - select_related: ["passport"], - }, - ]) + - "'", - `--s3-uri=s3://${publicDataDomain}/passport_scores/6608/`, - // "--summary-extra-args", - // JSON.stringify({ ACL: "public-read" }), - ].join(" "), - scheduleExpression: "cron(*/30 * ? * * *)", // Run the task every 30 min - alertTopic: pagerdutyTopic, - }, - envConfig -); +export const frequentScorerDataDumpTaskDefinitionForScorer_6608 = + createScheduledTask( + "frequent-allo-scorer-data-dump-6608", + { + ...baseScorerServiceConfig, + securityGroup: secgrp, + command: [ + "python", + "manage.py", + "scorer_dump_data", + "--config", + "'" + + JSON.stringify([ + { + name: "registry.Score", + filter: { community_id: 6608 }, + select_related: ["passport"], + }, + ]) + + "'", + `--s3-uri=s3://${publicDataDomain}/passport_scores/6608/`, + // "--summary-extra-args", + // JSON.stringify({ ACL: "public-read" }), + ].join(" "), + scheduleExpression: "cron(*/30 * ? * * *)", // Run the task every 30 min + alertTopic: pagerdutyTopic, + }, + envConfig + ); const exportVals = createScoreExportBucketAndDomain( publicDataDomain,