Skip to content

Commit

Permalink
Configure schedule and memory for AmigoBakePackages task (#1352)
Browse files Browse the repository at this point in the history
* Configure schedule and memory for AmigoBakePackages task

* Update test snapshot
  • Loading branch information
kelvin-chappell authored Dec 5, 2024
1 parent 8aed3f6 commit 8f8628d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/cdk/lib/__snapshots__/service-catalogue.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ exports[`The ServiceCatalogue stack matches the snapshot 1`] = `
"Resources": {
"CloudquerySourceAmigoBakePackagesScheduledEventRule3FDBCEB5": {
"Properties": {
"ScheduleExpression": "rate(1 day)",
"ScheduleExpression": "cron(0 3 * * ? *)",
"State": "ENABLED",
"Targets": [
{
Expand Down Expand Up @@ -416,7 +416,7 @@ spec:
"Environment": [
{
"Name": "GOMEMLIMIT",
"Value": "409MiB",
"Value": "819MiB",
},
],
"Essential": true,
Expand Down Expand Up @@ -681,7 +681,7 @@ spec:
],
},
"Family": "ServiceCatalogueCloudquerySourceAmigoBakePackagesTaskDefinition07388B36",
"Memory": "512",
"Memory": "1024",
"NetworkMode": "awsvpc",
"RequiresCompatibilities": [
"FARGATE",
Expand Down
3 changes: 2 additions & 1 deletion packages/cdk/lib/cloudquery/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -626,13 +626,14 @@ export function addCloudqueryEcsCluster(
const amigoBakePackagesSource: CloudquerySource = {
name: 'AmigoBakePackages',
description: 'Packages installed in Amigo bakes.',
schedule: nonProdSchedule ?? Schedule.rate(Duration.days(1)),
schedule: nonProdSchedule ?? Schedule.cron({ minute: '0', hour: '3' }),
config: amigoBakePackagesConfig(
baseImagesTableName,
recipesTableName,
bakesTableName,
packagesBucket.bucketName,
),
memoryLimitMiB: 1024,
policies: [
readDynamoDbTablePolicy(
GuardianAwsAccounts.DeployTools,
Expand Down

0 comments on commit 8f8628d

Please sign in to comment.