Skip to content

Commit

Permalink
feat(filemanager): add fastq bucket to ingester event source
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalenic committed Nov 15, 2024
1 parent c92c7dd commit 880578c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ export const icav2ArchiveAnalysisBucket: Record<AppStage.PROD, string> = {
[AppStage.PROD]: 'archive-prod-analysis-503977275616-ap-southeast-2',
};

// The fastq bucket. Noting that this is only present for prod data.
export const icav2ArchiveFastqBucket: Record<AppStage.PROD, string> = {
[AppStage.PROD]: 'archive-prod-fastq-503977275616-ap-southeast-2',
};

export const gdsBsRunsUploadLogPath: Record<AppStage, string> = {
[AppStage.BETA]: 'gds://development/primary_data/temp/bs_runs_upload_tes/',
[AppStage.GAMMA]: 'gds://staging/primary_data/temp/bs_runs_upload_tes/',
Expand Down
5 changes: 5 additions & 0 deletions config/stacks/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
eventSchemaRegistryName,
eventSourceQueueName,
icav2ArchiveAnalysisBucket,
icav2ArchiveFastqBucket,
icav2PipelineCacheBucket,
oncoanalyserBucket,
rdsMasterSecretName,
Expand Down Expand Up @@ -112,6 +113,10 @@ const getEventSourceConstructProps = (stage: AppStage): EventSourceProps => {
bucket: icav2ArchiveAnalysisBucket[stage],
eventTypes: ['Object Created', 'Object Deleted'],
});
props.rules.push({
bucket: icav2ArchiveFastqBucket[stage],
eventTypes: ['Object Created', 'Object Deleted'],
});
}

return props;
Expand Down

0 comments on commit 880578c

Please sign in to comment.