Skip to content

Commit

Permalink
Increase ephemeral storage of lambda to 10gb, memory to 512mb, to all…
Browse files Browse the repository at this point in the history
…ow for downloading/uploading large files
  • Loading branch information
philmcmahon committed Jan 8, 2025
1 parent 21c2b54 commit a2c18c6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1798,8 +1798,15 @@ service transcription-service-worker start",
},
},
"Memory": 4096,
"MountPoints": [
{
"ContainerPath": "/media-download",
"ReadOnly": false,
"SourceVolume": "media-download-volume",
},
],
"Name": "media-download-task-TaskContainer",
"ReadonlyRootFilesystem": false,
"ReadonlyRootFilesystem": true,
},
],
"Cpu": "2048",
Expand Down Expand Up @@ -1850,6 +1857,11 @@ service transcription-service-worker start",
"Arn",
],
},
"Volumes": [
{
"Name": "media-download-volume",
},
],
},
"Type": "AWS::ECS::TaskDefinition",
},
Expand Down Expand Up @@ -2112,6 +2124,9 @@ service transcription-service-worker start",
"STAGE": "TEST",
},
},
"EphemeralStorage": {
"Size": 10240,
},
"Handler": "index.api",
"LoggingConfig": {
"LogFormat": "JSON",
Expand Down
3 changes: 3 additions & 0 deletions packages/cdk/lib/transcription-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import {
Duration,
Fn,
RemovalPolicy,
Size,
Tags,
} from 'aws-cdk-lib';
import { EndpointType } from 'aws-cdk-lib/aws-apigateway';
Expand Down Expand Up @@ -199,6 +200,8 @@ export class TranscriptionService extends GuStack {
noMonitoring: true,
},
app: `${APP_NAME}-api`,
ephemeralStorageSize: Size.mebibytes(10240),
memorySize: 512,
api: {
id: apiId,
description: 'API for transcription service frontend',
Expand Down

0 comments on commit a2c18c6

Please sign in to comment.