Skip to content

Commit

Permalink
Set APP env var on media download service
Browse files Browse the repository at this point in the history
  • Loading branch information
philmcmahon committed Jan 27, 2025
1 parent d8c9382 commit a4235fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ exports[`The TranscriptionService stack matches the snapshot 1`] = `
"OnDemandBaseCapacity": 0,
"OnDemandPercentageAboveBaseCapacity": 10,
"SpotAllocationStrategy": "capacity-optimized",
"SpotMaxPrice": "1.1230",
"SpotMaxPrice": "0.7520",
},
"LaunchTemplate": {
"LaunchTemplateSpecification": {
Expand Down Expand Up @@ -1031,7 +1031,7 @@ exports[`The TranscriptionService stack matches the snapshot 1`] = `
},
},
"ImageId": "ami-12345",
"InstanceType": "g5.xlarge",
"InstanceType": "g4dn.2xlarge",
"MetadataOptions": {
"InstanceMetadataTags": "enabled",
},
Expand Down Expand Up @@ -1713,7 +1713,7 @@ service transcription-service-worker start",
"GroupId",
],
},
""]}},"Overrides":{"ContainerOverrides":[{"Name":"media-download-task-TaskContainer","Environment":[{"Name":"MESSAGE_BODY","Value.$":"$[0].body"},{"Name":"AWS_REGION","Value":"test-region"},{"Name":"STAGE","Value":"TEST"}]}]},"LaunchType":"FARGATE","PlatformVersion":"LATEST"}}}}",
""]}},"Overrides":{"ContainerOverrides":[{"Name":"media-download-task-TaskContainer","Environment":[{"Name":"MESSAGE_BODY","Value.$":"$[0].body"},{"Name":"AWS_REGION","Value":"test-region"},{"Name":"STAGE","Value":"TEST"},{"Name":"APP","Value":"media-download"}]}]},"LaunchType":"FARGATE","PlatformVersion":"LATEST"}}}}",
],
],
},
Expand Down
4 changes: 4 additions & 0 deletions packages/cdk/lib/transcription-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,10 @@ export class TranscriptionService extends GuStack {
name: 'STAGE',
value: this.stage,
},
{
name: 'APP',
value: mediaDownloadApp,
},
],
});

Expand Down

0 comments on commit a4235fe

Please sign in to comment.