File tree 3 files changed +27
-0
lines changed
3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -1016,3 +1016,15 @@ export const dataMartAthenaWorkgroup = 'orcahouse';
1016
1016
export const dataMartAthenaDataSource = 'orcavault' ;
1017
1017
export const dataMartAthenaDatabase = 'mart' ;
1018
1018
export const dataMartAthenaLambdaFunctionName = 'orcavault' ;
1019
+
1020
+ /*
1021
+ External Projects
1022
+ */
1023
+ export const externalProjectBuckets : Record < AppStage , string [ ] > = {
1024
+ [ AppStage . BETA ] : [ ] ,
1025
+ [ AppStage . GAMMA ] : [ ] ,
1026
+ [ AppStage . PROD ] : [
1027
+ // Project Montauk
1028
+ 'pipeline-montauk-977251586657-ap-southeast-2' ,
1029
+ ] ,
1030
+ } ;
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import {
20
20
vpcProps ,
21
21
ntsmBucket ,
22
22
dataSharingCacheBucket ,
23
+ externalProjectBuckets ,
23
24
} from '../constants' ;
24
25
25
26
export const fileManagerBuckets = ( stage : AppStage ) : string [ ] => {
@@ -32,6 +33,11 @@ export const fileManagerBuckets = (stage: AppStage): string[] => {
32
33
eventSourceBuckets . push ( ntsmBucket [ stage ] ) ;
33
34
eventSourceBuckets . push ( dataSharingCacheBucket [ stage ] ) ;
34
35
36
+ /* Extend the event source buckets with the external project buckets */
37
+ for ( const bucket of externalProjectBuckets [ stage ] ) {
38
+ eventSourceBuckets . push ( bucket ) ;
39
+ }
40
+
35
41
return eventSourceBuckets ;
36
42
} ;
37
43
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import {
22
22
oncoanalyserBucket ,
23
23
rdsMasterSecretName ,
24
24
vpcProps ,
25
+ externalProjectBuckets ,
25
26
} from '../constants' ;
26
27
import { Duration , RemovalPolicy } from 'aws-cdk-lib' ;
27
28
import { SchemaRegistryProps } from '../../lib/workload/stateful/stacks/shared/constructs/schema-registry' ;
@@ -175,6 +176,14 @@ export const getEventSourceConstructProps = (stage: AppStage): EventSourceProps
175
176
patterns : eventSourcePattern ( ) ,
176
177
} ) ;
177
178
179
+ for ( const bucket of externalProjectBuckets [ stage ] ) {
180
+ props . rules . push ( {
181
+ bucket : bucket ,
182
+ eventTypes,
183
+ patterns : eventSourcePattern ( ) ,
184
+ } ) ;
185
+ }
186
+
178
187
return props ;
179
188
} ;
180
189
You can’t perform that action at this time.
0 commit comments