[9271c5]: / source / GenomicsAnalysisCode / TCIA_etl.yaml

Download this file

612 lines (567 with data), 20.1 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge,
# publish, distribute, sublicense, and/or sell copies of the Software,
# and to permit persons to whom the Software is furnished to do so.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
AWSTemplateFormatVersion: '2010-09-09'
Description: |
This CloudFormation Template deploys Glue jobs and crawlers for TCGA
data
Parameters:
ResourcesBucket:
Type: String
ResourcePrefix:
Type: String
ResourcePrefixLowercase:
Type: String
DatabaseName:
Type: String
Default: AUTO
Description: |
If not AUTO, references an existing Glue database for crawlers
to create tables in.
DataLakeBucket:
Description: |
S3 bucket where results will be written. Bucketname needs to be
unique. The bucket name must respect the S3 bucket naming
conventions (can contain lowercase letters, numbers, periods and
hyphens).
Type: String
AllowedPattern: "((?=^.{3,63}$)(?!^(\\d+\\.)+\\d+$)(^(([a-z0-9]|[a-z0-9][a-z0-9\\-]*[a-z0-9])\\.)*([a-z0-9]|[a-z0-9][a-z0-9\\-]*[a-z0-9])$)|(^.{0}$))"
ExistingBucket:
Description: Is this an existing bucket?
Type: String
AllowedValues:
- "Yes"
- "No"
Default: "No"
Conditions:
BucketDoesNotExist:
Fn::Equals:
- !Ref ExistingBucket
- "No"
NeedsGlueDatabase: !Equals [!Ref DatabaseName, "AUTO"]
Resources:
TCGAS3Bucket:
Type: AWS::S3::Bucket
Condition: BucketDoesNotExist
DeletionPolicy: Retain
UpdateReplacePolicy: Retain
Properties:
BucketName: !Ref DataLakeBucket
BucketEncryption:
ServerSideEncryptionConfiguration:
- ServerSideEncryptionByDefault:
SSEAlgorithm: AES256
GlueJobRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
Version: "2012-10-17"
Statement:
- Effect: "Allow"
Principal:
Service: "glue.amazonaws.com"
Action: "sts:AssumeRole"
Path: "/"
ManagedPolicyArns:
- arn:aws:iam::aws:policy/service-role/AWSGlueServiceRole
Policies:
- PolicyName: athena_access
PolicyDocument:
Version: 2012-10-17
Statement:
- Effect: Allow
Action:
- athena:StartQueryExecution
- athena:GetQueryExecution
- athena:GetQueryResults
Resource:
- !Sub arn:aws:athena:${AWS::Region}:${AWS::AccountId}:workgroup/primary
- PolicyName: kms_access
PolicyDocument:
Version: 2012-10-17
Statement:
- Effect: Allow
Action:
- kms:GenerateDataKey
- kms:Decrypt
- kms:Encrypt
Resource:
- !ImportValue
Fn::Sub: '${ResourcePrefix}-DataCatalogEncryptionKeyArn'
- PolicyName: "CrawlerAccess"
PolicyDocument:
Version: "2012-10-17"
Statement:
- Effect: "Allow"
Action:
- s3:PutObject
- s3:GetObject
- s3:ListBucket
- s3:DeleteObject
Resource:
- !Sub 'arn:aws:s3:::${DataLakeBucket}'
- !Sub 'arn:aws:s3:::${DataLakeBucket}/*'
- Effect: "Allow"
Action:
- s3:GetObject
- s3:ListBucket
Resource:
- !Sub 'arn:aws:s3:::${ResourcesBucket}'
- !Sub 'arn:aws:s3:::${ResourcesBucket}/*'
GlueLakeformationPermissons:
Type: AWS::LakeFormation::Permissions
Properties:
DataLakePrincipal:
DataLakePrincipalIdentifier: !GetAtt GlueJobRole.Arn
Permissions:
- CREATE_TABLE
- DESCRIBE
Resource:
DatabaseResource:
Name: !Sub ${ResourcePrefixLowercase}
TcgaLuadExpressionGlueJob:
Type: AWS::Glue::Job
Properties:
Command:
Name: glueetl
ScriptLocation: !Sub "s3://${ResourcesBucket}/scripts/tcga_etl_common_job.py"
DefaultArguments:
"--output_bucket": !Ref 'DataLakeBucket'
"--project": "TCGA-LUAD"
"--data_type": "Gene Expression Quantification"
GlueVersion: "2.0"
ExecutionProperty:
MaxConcurrentRuns: 2
MaxRetries: 0
Role: !Ref GlueJobRole
TcgaLuadMutationGlueJob:
Type: AWS::Glue::Job
Properties:
Command:
Name: glueetl
ScriptLocation: !Sub "s3://${ResourcesBucket}/scripts/tcga_etl_common_job.py"
DefaultArguments:
"--output_bucket": !Ref 'DataLakeBucket'
"--project": "TCGA-LUAD"
"--data_type": "Masked Somatic Mutation"
GlueVersion: "2.0"
ExecutionProperty:
MaxConcurrentRuns: 2
MaxRetries: 0
Role: !Ref GlueJobRole
TcgaLuadCnvGlueJob:
Type: AWS::Glue::Job
Properties:
Command:
Name: glueetl
ScriptLocation: !Sub "s3://${ResourcesBucket}/scripts/tcga_etl_common_job.py"
DefaultArguments:
"--output_bucket": !Ref 'DataLakeBucket'
"--project": "TCGA-LUAD"
"--data_type": "Gene Level Copy Number"
GlueVersion: "2.0"
ExecutionProperty:
MaxConcurrentRuns: 2
MaxRetries: 0
Role: !Ref GlueJobRole
TcgaLuadClinicalGlueJob:
Type: AWS::Glue::Job
Properties:
Command:
Name: glueetl
ScriptLocation: !Sub "s3://${ResourcesBucket}/scripts/tcga_etl_common_job.py"
DefaultArguments:
"--output_bucket": !Ref 'DataLakeBucket'
"--project": "TCGA-LUAD"
"--data_type": "Clinical Supplement"
GlueVersion: "2.0"
ExecutionProperty:
MaxConcurrentRuns: 2
MaxRetries: 0
Role: !Ref GlueJobRole
TcgaLuadImagingMetadataGlueJob:
Type: AWS::Glue::Job
Properties:
Command:
Name: glueetl
ScriptLocation: !Sub "s3://${ResourcesBucket}/scripts/image_api_glue.py"
DefaultArguments:
"--output_bucket": !Ref 'DataLakeBucket'
"--project": "TCGA-LUAD"
GlueVersion: "2.0"
ExecutionProperty:
MaxConcurrentRuns: 2
MaxRetries: 0
Role: !Ref GlueJobRole
TcgaLuscExpressionGlueJob:
Type: AWS::Glue::Job
Properties:
Command:
Name: glueetl
ScriptLocation: !Sub "s3://${ResourcesBucket}/scripts/tcga_etl_common_job.py"
DefaultArguments:
"--output_bucket": !Ref 'DataLakeBucket'
"--project": "TCGA-LUSC"
"--data_type": "Gene Expression Quantification"
GlueVersion: "2.0"
ExecutionProperty:
MaxConcurrentRuns: 2
MaxRetries: 0
Role: !Ref GlueJobRole
TcgaLuscMutationGlueJob:
Type: AWS::Glue::Job
Properties:
Command:
Name: glueetl
ScriptLocation: !Sub "s3://${ResourcesBucket}/scripts/tcga_etl_common_job.py"
DefaultArguments:
"--output_bucket": !Ref 'DataLakeBucket'
"--project": "TCGA-LUSC"
"--data_type": "Masked Somatic Mutation"
GlueVersion: "2.0"
ExecutionProperty:
MaxConcurrentRuns: 2
MaxRetries: 0
Role: !Ref GlueJobRole
TcgaLuscCnvGlueJob:
Type: AWS::Glue::Job
Properties:
Command:
Name: glueetl
ScriptLocation: !Sub "s3://${ResourcesBucket}/scripts/tcga_etl_common_job.py"
DefaultArguments:
"--output_bucket": !Ref 'DataLakeBucket'
"--project": "TCGA-LUSC"
"--data_type": "Gene Level Copy Number"
GlueVersion: "2.0"
ExecutionProperty:
MaxConcurrentRuns: 2
MaxRetries: 0
Role: !Ref GlueJobRole
TcgaLuscClinicalGlueJob:
Type: AWS::Glue::Job
Properties:
Command:
Name: glueetl
ScriptLocation: !Sub "s3://${ResourcesBucket}/scripts/tcga_etl_common_job.py"
DefaultArguments:
"--output_bucket": !Ref 'DataLakeBucket'
"--project": "TCGA-LUSC"
"--data_type": "Clinical Supplement"
GlueVersion: "2.0"
ExecutionProperty:
MaxConcurrentRuns: 2
MaxRetries: 0
Role: !Ref GlueJobRole
TcgaLuscImagingMetadataGlueJob:
Type: AWS::Glue::Job
Properties:
Command:
Name: glueetl
ScriptLocation: !Sub "s3://${ResourcesBucket}/scripts/image_api_glue.py"
DefaultArguments:
"--output_bucket": !Ref 'DataLakeBucket'
"--project": "TCGA-LUSC"
GlueVersion: "2.0"
ExecutionProperty:
MaxConcurrentRuns: 2
MaxRetries: 0
Role: !Ref GlueJobRole
TcgaSummaryGlueJob:
Type: AWS::Glue::Job
Properties:
Command:
Name: glueetl
ScriptLocation: !Sub "s3://${ResourcesBucket}/scripts/create_tcga_summary.py"
DefaultArguments:
"--bucket": !Ref 'DataLakeBucket'
"--workgroup": "primary" # does not work when set to the solution wg
"--database": !If
- NeedsGlueDatabase
- !Ref TcgaDb
- !Ref DatabaseName
GlueVersion: "2.0"
ExecutionProperty:
MaxConcurrentRuns: 2
MaxRetries: 0
Role: !Ref GlueJobRole
TCGAMutationCrawler:
Type: AWS::Glue::Crawler
Properties:
Name: !Sub ${ResourcePrefixLowercase}-tcga-mut
Role: !Ref GlueJobRole
Description: AWS Glue crawler to crawl TCGA mutation data
DatabaseName: !If
- NeedsGlueDatabase
- !Ref TcgaDb
- !Ref DatabaseName
Targets:
S3Targets:
- Path: !Join ['',['s3://',!Ref 'DataLakeBucket','/tcga-mutation']]
SchemaChangePolicy:
UpdateBehavior: "UPDATE_IN_DATABASE"
DeleteBehavior: "LOG"
Configuration: "{\"Version\":1.0,\"CrawlerOutput\":{\"Partitions\":{\"AddOrUpdateBehavior\":\"InheritFromTable\"},\"Tables\":{\"AddOrUpdateBehavior\":\"MergeNewColumns\"}}}"
TCGACNVCrawler:
Type: AWS::Glue::Crawler
Properties:
Name: !Sub ${ResourcePrefixLowercase}-tcga-cnv
Role: !Ref GlueJobRole
Description: AWS Glue crawler to crawl TCGA copy number data
DatabaseName: !If
- NeedsGlueDatabase
- !Ref TcgaDb
- !Ref DatabaseName
Targets:
S3Targets:
- Path: !Join ['',['s3://',!Ref 'DataLakeBucket','/tcga-cnv']]
SchemaChangePolicy:
UpdateBehavior: "UPDATE_IN_DATABASE"
DeleteBehavior: "LOG"
Configuration: "{\"Version\":1.0,\"CrawlerOutput\":{\"Partitions\":{\"AddOrUpdateBehavior\":\"InheritFromTable\"},\"Tables\":{\"AddOrUpdateBehavior\":\"MergeNewColumns\"}}}"
TCGAExpressionCrawler:
Type: AWS::Glue::Crawler
Properties:
Name: !Sub ${ResourcePrefixLowercase}-tcga-exp
Role: !Ref GlueJobRole
Description: AWS Glue crawler to crawl TCGA expression data
DatabaseName: !If
- NeedsGlueDatabase
- !Ref TcgaDb
- !Ref DatabaseName
Targets:
S3Targets:
- Path: !Join ['',['s3://',!Ref 'DataLakeBucket','/tcga-expression']]
SchemaChangePolicy:
UpdateBehavior: "UPDATE_IN_DATABASE"
DeleteBehavior: "LOG"
Configuration: "{\"Version\":1.0,\"CrawlerOutput\":{\"Partitions\":{\"AddOrUpdateBehavior\":\"InheritFromTable\"},\"Tables\":{\"AddOrUpdateBehavior\":\"MergeNewColumns\"}}}"
TCGAClinicalCrawler:
Type: AWS::Glue::Crawler
Properties:
Name: !Sub ${ResourcePrefixLowercase}-tcga-clin
Role: !Ref GlueJobRole
Description: AWS Glue crawler to crawl TCGA clinical data
DatabaseName: !If
- NeedsGlueDatabase
- !Ref TcgaDb
- !Ref DatabaseName
Targets:
S3Targets:
- Path: !Join ['',['s3://',!Ref 'DataLakeBucket','/tcga-clinical']]
SchemaChangePolicy:
UpdateBehavior: "UPDATE_IN_DATABASE"
DeleteBehavior: "LOG"
Configuration: "{\"Version\":1.0,\"CrawlerOutput\":{\"Partitions\":{\"AddOrUpdateBehavior\":\"InheritFromTable\"},\"Tables\":{\"AddOrUpdateBehavior\":\"MergeNewColumns\"}}}"
TCGAImagingMetadataCrawler:
Type: AWS::Glue::Crawler
Properties:
Name: !Sub ${ResourcePrefixLowercase}-tcga-img
Role: !Ref GlueJobRole
Description: AWS Glue crawler to crawl TCGA imaging metadata
DatabaseName: !If
- NeedsGlueDatabase
- !Ref TcgaDb
- !Ref DatabaseName
Targets:
S3Targets:
- Path: !Join ['',['s3://',!Ref 'DataLakeBucket','/tcia-metadata']]
SchemaChangePolicy:
UpdateBehavior: "UPDATE_IN_DATABASE"
DeleteBehavior: "LOG"
Configuration: "{\"Version\":1.0,\"CrawlerOutput\":{\"Partitions\":{\"AddOrUpdateBehavior\":\"InheritFromTable\"},\"Tables\":{\"AddOrUpdateBehavior\":\"MergeNewColumns\"}}}"
TCGASummaryCrawler:
Type: AWS::Glue::Crawler
Properties:
Name: !Sub ${ResourcePrefixLowercase}-tcga-sum
Role: !Ref GlueJobRole
Description: AWS Glue crawler to crawl TCGA summary data
DatabaseName: !If
- NeedsGlueDatabase
- !Ref TcgaDb
- !Ref DatabaseName
Targets:
S3Targets:
- Path: !Join ['', ['s3://', !Ref DataLakeBucket, '/tcga-summary']]
SchemaChangePolicy:
UpdateBehavior: "UPDATE_IN_DATABASE"
DeleteBehavior: "LOG"
Configuration: "{\"Version\":1.0,\"CrawlerOutput\":{\"Partitions\":{\"AddOrUpdateBehavior\":\"InheritFromTable\"},\"Tables\":{\"AddOrUpdateBehavior\":\"MergeNewColumns\"}}}"
TCGAWorkflow:
Type: AWS::Glue::Workflow
Properties:
Description: "Workflow that kicks off exp job and crawler"
WorkflowStartTrigger:
Type: AWS::Glue::Trigger
Properties:
Name: !Sub ${ResourcePrefixLowercase}-tcga-start
Type: ON_DEMAND
Description: Trigger for starting the workflow
Actions:
- JobName: !Ref TcgaLuadExpressionGlueJob
- JobName: !Ref TcgaLuadMutationGlueJob
- JobName: !Ref TcgaLuadCnvGlueJob
- JobName: !Ref TcgaLuadClinicalGlueJob
- JobName: !Ref TcgaLuadImagingMetadataGlueJob
- JobName: !Ref TcgaLuscExpressionGlueJob
- JobName: !Ref TcgaLuscMutationGlueJob
- JobName: !Ref TcgaLuscCnvGlueJob
- JobName: !Ref TcgaLuscClinicalGlueJob
- JobName: !Ref TcgaLuscImagingMetadataGlueJob
WorkflowName: !Ref TCGAWorkflow
ExpCrawlerTrigger:
Type: AWS::Glue::Trigger
Properties:
Name: !Sub ${ResourcePrefixLowercase}-tcga-exp
Type: "CONDITIONAL"
Description: "Description for a conditional job trigger"
Actions:
- CrawlerName: !Ref 'TCGAExpressionCrawler'
StartOnCreation: true
Predicate:
Logical: AND
Conditions:
- LogicalOperator: EQUALS
JobName: !Ref 'TcgaLuadExpressionGlueJob'
State: SUCCEEDED
- LogicalOperator: EQUALS
JobName: !Ref 'TcgaLuscExpressionGlueJob'
State: SUCCEEDED
WorkflowName: !Ref TCGAWorkflow
MutCrawlerTrigger:
Type: AWS::Glue::Trigger
Properties:
Name: !Sub ${ResourcePrefixLowercase}-tcga-mut
Type: "CONDITIONAL"
Description: "Description for a conditional Mutation crawler job trigger"
Actions:
- CrawlerName: !Ref 'TCGAMutationCrawler'
StartOnCreation: true
Predicate:
Logical: AND
Conditions:
- LogicalOperator: EQUALS
JobName: !Ref 'TcgaLuadMutationGlueJob'
State: SUCCEEDED
- LogicalOperator: EQUALS
JobName: !Ref 'TcgaLuscMutationGlueJob'
State: SUCCEEDED
WorkflowName: !Ref TCGAWorkflow
CnvCrawlerTrigger:
Type: AWS::Glue::Trigger
Properties:
Name: !Sub ${ResourcePrefixLowercase}-tcga-cnv
Type: "CONDITIONAL"
Description: "Description for a conditional CNV crawler job trigger"
Actions:
- CrawlerName: !Ref 'TCGACNVCrawler'
StartOnCreation: true
Predicate:
Logical: AND
Conditions:
- LogicalOperator: EQUALS
JobName: !Ref 'TcgaLuadCnvGlueJob'
State: SUCCEEDED
- LogicalOperator: EQUALS
JobName: !Ref 'TcgaLuscCnvGlueJob'
State: SUCCEEDED
WorkflowName: !Ref TCGAWorkflow
ClinCrawlerTrigger:
Type: AWS::Glue::Trigger
Properties:
Name: !Sub ${ResourcePrefixLowercase}-tcga-clin
Type: "CONDITIONAL"
Description: "Description for a conditional Clinical crawler job trigger"
Actions:
- CrawlerName: !Ref 'TCGAClinicalCrawler'
StartOnCreation: true
Predicate:
Logical: AND
Conditions:
- LogicalOperator: EQUALS
JobName: !Ref 'TcgaLuadClinicalGlueJob'
State: SUCCEEDED
- LogicalOperator: EQUALS
JobName: !Ref 'TcgaLuscClinicalGlueJob'
State: SUCCEEDED
WorkflowName: !Ref TCGAWorkflow
ImMetaCrawlerTrigger:
Type: AWS::Glue::Trigger
Properties:
Name: !Sub ${ResourcePrefixLowercase}-tcga-img
Type: "CONDITIONAL"
Description: "Description for a conditional Clinical crawler job trigger"
Actions:
- CrawlerName: !Ref 'TCGAImagingMetadataCrawler'
StartOnCreation: true
Predicate:
Logical: AND
Conditions:
- LogicalOperator: EQUALS
JobName: !Ref 'TcgaLuadImagingMetadataGlueJob'
State: SUCCEEDED
- LogicalOperator: EQUALS
JobName: !Ref 'TcgaLuscImagingMetadataGlueJob'
State: SUCCEEDED
WorkflowName: !Ref TCGAWorkflow
RunSummaryJobTrigger:
Type: AWS::Glue::Trigger
Properties:
Name: !Sub ${ResourcePrefixLowercase}-tcga-sum
Type: "CONDITIONAL"
Description: "Build TCGA summary"
Actions:
- JobName: !Ref TcgaSummaryGlueJob
StartOnCreation: true
Predicate:
Logical: AND
Conditions:
- LogicalOperator: EQUALS
CrawlerName: !Ref TCGAMutationCrawler
CrawlState: SUCCEEDED
- LogicalOperator: EQUALS
CrawlerName: !Ref TCGACNVCrawler
CrawlState: SUCCEEDED
- LogicalOperator: EQUALS
CrawlerName: !Ref TCGAExpressionCrawler
CrawlState: SUCCEEDED
- LogicalOperator: EQUALS
CrawlerName: !Ref TCGAClinicalCrawler
CrawlState: SUCCEEDED
- LogicalOperator: EQUALS
CrawlerName: !Ref TCGAImagingMetadataCrawler
CrawlState: SUCCEEDED
WorkflowName: !Ref TCGAWorkflow
TcgaDb:
Type: AWS::Glue::Database
Condition: NeedsGlueDatabase
Properties:
CatalogId: !Ref AWS::AccountId
DatabaseInput:
Description: "AWS Glue container to hold tables for the TCGA crawlers"
Outputs:
DataLakeBucket:
Value: !Ref DataLakeBucket
TCGAWorkflow:
Value: !Ref TCGAWorkflow
CreateQuicksightLink:
Value: !Sub "https://${AWS::Region}.console.aws.amazon.com/cloudformation/home\
?region=${AWS::Region}#/stacks/create/review\
?templateURL=https://s3.${AWS::Region}.amazonaws.com/${ResourcesBucket}/quicksight_cfn.yml\
&stackName=${ResourcePrefix}-Quicksight\
&param_Project=${ResourcePrefix}"