-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initialised the cttso launch v2 deployment service
- Loading branch information
Showing
28 changed files
with
3,135 additions
and
0 deletions.
There are no files selected for viewing
170 changes: 170 additions & 0 deletions
170
lib/workload/stateless/cttso_v2_pipeline_manager/Readme.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,170 @@ | ||
# ctTSO v2 pipeline manager | ||
|
||
<!-- TOC --> | ||
* [ctTSO v2 pipeline manager](#cttso-v2-pipeline-manager) | ||
* [Inputs](#inputs) | ||
* [Example Input](#example-input) | ||
* [Outputs](#outputs) | ||
* [Lambdas in this directory](#lambdas-in-this-directory) | ||
* [Get Cache and Output paths](#get-cache-and-output-paths) | ||
* [Generate a trimmed samplesheet](#generate-a-trimmed-samplesheet) | ||
* [Upload the samplesheet to the cache path](#upload-the-samplesheet-to-the-cache-path) | ||
* [Generate a copy manifest](#generate-a-copy-manifest) | ||
* [Launch the nextflow pipeline](#launch-the-nextflow-pipeline) | ||
* [SSM Parameters](#ssm-parameters-) | ||
* [External Parameters required by CDK](#external-parameters-required-by-cdk) | ||
<!-- TOC --> | ||
|
||
This AWS step functions performs the following actions | ||
|
||
* Copies a set of fastq files to a structured location (via the icav2 copy batch utility) | ||
* Uploads a samplesheet to the same structured location | ||
* Invokes the ctTSO v2 pipeline calling the structured location as the run folder | ||
|
||
![](./images/step_functions_image.png) | ||
|
||
## Inputs | ||
|
||
The AWS Step functions takes in the following parameters: | ||
|
||
* project_id | ||
* sample_id (should match the sample_id in the samplesheet, ideally the lab metadata library id) | ||
* portal_run_id (unique identifier for this step functions run and determines the data output location) | ||
* user_reference (an identifier for the run, can also be the same as the portal run id) | ||
* user_tags: (as a dict) | ||
* subject_id | ||
* library_id | ||
* instrument_run_id | ||
* project_owner | ||
* project_name | ||
* technical_tags: | ||
* These are generated by the AWS Step functions and comprise the step_functions_execution_arn and the portal_run_id | ||
* So should be left blank for now | ||
* samplesheet_b64gz: (a base64 encoded and gzipped samplesheet as a dictionary, this can be found as an output of the bssh_icav2_fastq_copy_manager step functions) | ||
* fastq_list_rows_b64gz: (a base64 encoded and gzipped list of fastq rows as a dictionary, this can be found as an output of the bssh_icav2_fastq_copy_manager step functions) | ||
* This will use only the fastq files whose RGSM attribute match the sample id | ||
|
||
### Example Input | ||
|
||
```json | ||
{ | ||
"project_id": "7595e8f2-32d3-4c76-a324-c6a85dae87b5", | ||
"sample_id": "L2301368", | ||
"portal_run_id": "20240308abcd1234", | ||
"user_reference": "PTC-ctTSO-v2-launch-test", | ||
"user_tags": { | ||
"subject_id": "SBJ04405", | ||
"library_id": "L2301368", | ||
"instrument_run_id": "231116_A01052_0172_BHVLM5DSX7", | ||
"project_owner": "UMCCR", | ||
"project_name": "testing" | ||
}, | ||
"samplesheet_b64gz": "H4sIAAAAAAAAA91b227bOBB9z1cU3tek0M2WlD5pVUAo0M0uGvahWCwGsq20Qm3ZlZV0i0X/fTmUGcvlULQVxmiNIAEcUuKZIefqw/8uXrwYfSryeVGPrl/8xz/xz3flooC7Vb3MG3go6k25qvigd9mO1vcVVPmy4P8asc2X6uqmmL67STzfdV3/6o+3RXHL3oE7uVk9eP5o+1BZbZr6fllUDTTf1uJZPp7fFl9GfMJ3nDWqOYzNDgV+BBdm32aLAv/tjt3LzohHjZTVvPh37yFnb6T7kPO48HS2mK0qLmkDm6JpyupjB8ayrMrl/RKaulwuizmIxRdF9bH5xCf548v9afk8XzdFDSv+ukW+xilyRr75DJtPK76KlPTx6c3qrvma10VH3aPgpfcyHFEg53mT8xl/i2dbmHzCIq9Qr1tV4Evz5ZpvZDnHt731fMf1J9HocVhoBIeyJGVZkrEk+2HQw9GUjyYsTZJ0N4rC1eW82Glz9D68cT+4gf/qjeuIX/mP3VNSNe3GinezjKX8hy+Q8HX4Mk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wpEJvfh66TbFyrUrYhMkm0wmySbzBrjTyCCZFs2K5Ji4sZAQnrHppnfdTRrovvE82Qjt8TLKG+BOIT1etGheJEfEjYWE8Jss8SyUO9VoXb8XSbLQHi+jvQHuFNLjRYvmRXJE3FhICK7Jbs5Aa3EiX+teg0WRLLTHyxhvgDuF9HjRonmRHBE3FhKOnGp0b5TGd1hY9zILimShPV7mYIA7hfR40aJ5kRwRNxYSwj1e1p1nTLFT07b082QjtMfLFN4Adwrp8aJF8yI5Im4sJIT7rocOpw2kbt4AtogQJOdC1+T8YIA7hfR40aJZkRwTNxYSHjdbM4+erXlyJBMDDk+fZFo0K5Jj4sZCwuMm8uXRE/lOjmRiLNrpk0yLZkVyTNxYSDhSu7buBAU+Vbb4giiKZKHZdXMwxj6XQjIpmhfJEXFjIeE+yb/+C4TOMeRCoAAA" | ||
} | ||
``` | ||
|
||
## Outputs | ||
|
||
The AWS Step functions returns the following parameters: | ||
|
||
The analysis ID of the nextflow pipeline run launched by the step functions lambda | ||
|
||
The CreateNextflowAnalysis submission as a JSON object for reproducibility | ||
|
||
```json | ||
{ | ||
"analysis_id": "3e17b6ff-ff63-43ab-ac15-e939e88932b6", | ||
"analysis_launch_payload": { | ||
"userReference": "PTC-ctTSO-v2-launch-test", | ||
"pipelineId": "fdef5902-3f50-4ee7-ae17-15d38d4b489c", | ||
"tags": { | ||
"technicalTags": [ | ||
"portal_run_id=20240308abcd1234", | ||
"step_functions_execution_arn=93f7c69b-66eb-4890-8eb4-298ec3b36d37" | ||
], | ||
"userTags": [ | ||
"subject_id=SBJ04405", | ||
"library_id=L2301368", | ||
"instrument_run_id=231116_A01052_0172_BHVLM5DSX7", | ||
"project_owner=UMCCR", | ||
"project_name=testing" | ||
], | ||
"referenceTags": [] | ||
}, | ||
"analysisInput": { | ||
"inputs": [ | ||
{ | ||
"parameterCode": "run_folder", | ||
"dataIds": [ | ||
"fol.58422302edd141213e0f08dc3cace45e" | ||
] | ||
}, | ||
{ | ||
"parameterCode": "sample_sheet", | ||
"dataIds": [ | ||
"fil.94813f45b9e94977b0a308dc388cf24f" | ||
] | ||
} | ||
], | ||
"parameters": [ | ||
{ | ||
"code": "StartsFromFastq", | ||
"value": "true" | ||
}, | ||
{ | ||
"code": "sample_pair_ids", | ||
"multiValue": [ | ||
"L2301368" | ||
] | ||
} | ||
] | ||
}, | ||
"activationCodeDetailId": "7f03a57e-2cfc-4b35-9cbb-d19e6ce9984b", | ||
"analysisStorageId": "3fab13dd-46e7-4b54-bb34-b80a01a99379", | ||
"outputParentFolderId": null, | ||
"analysisOutput": [ | ||
{ | ||
"sourcePath": "out/", | ||
"targetProjectId": "7595e8f2-32d3-4c76-a324-c6a85dae87b5", | ||
"targetPath": "/ilmn_cttso_fastq_cache/20240308abcd1234/", | ||
"type": "FOLDER" | ||
} | ||
] | ||
} | ||
} | ||
``` | ||
|
||
## Lambdas in this directory | ||
|
||
### Get Cache and Output paths | ||
|
||
Combine the root cache and root output ssm parameters with the portal run id submitted in the inputs | ||
|
||
### Generate a trimmed samplesheet | ||
|
||
Generate a samplesheet that only has the TSO500L sections and only for the sample_id submitted in the inputs | ||
|
||
### Upload the samplesheet to the cache path | ||
|
||
Upload the samplesheet dict as a samplesheet csv to the cache path | ||
|
||
### Generate a copy manifest | ||
|
||
Generate a copy manifest for submissions to the icav2 copy batch utility | ||
|
||
### Launch the nextflow pipeline | ||
|
||
Take the fastq output locations, samplesheet location and metadata generated in the inputs and run the launch nextflow object. | ||
|
||
## SSM Parameters | ||
|
||
### External Parameters required by CDK | ||
|
||
``` | ||
/icav2/umccr-prod/service-user-trial-jwt-token-secret-arn | ||
/icav2_copy_batch_utility/state_machine_arn | ||
/icav2/umccr-prod/cache_project_cttso_fastq_path | ||
/icav2/umccr-prod/output_project_cttso_fastq_path | ||
/icav2/umccr-prod/tso500_ctdna_2.1_pipeline_id | ||
``` |
8 changes: 8 additions & 0 deletions
8
lib/workload/stateless/cttso_v2_pipeline_manager/deploy/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
*.js | ||
!jest.config.js | ||
*.d.ts | ||
node_modules | ||
|
||
# CDK asset staging directory | ||
.cdk.staging | ||
cdk.out |
6 changes: 6 additions & 0 deletions
6
lib/workload/stateless/cttso_v2_pipeline_manager/deploy/.npmignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
*.ts | ||
!*.d.ts | ||
|
||
# CDK asset staging directory | ||
.cdk.staging | ||
cdk.out |
14 changes: 14 additions & 0 deletions
14
lib/workload/stateless/cttso_v2_pipeline_manager/deploy/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Welcome to your CDK TypeScript project | ||
|
||
This is a blank project for CDK development with TypeScript. | ||
|
||
The `cdk.json` file tells the CDK Toolkit how to execute your app. | ||
|
||
## Useful commands | ||
|
||
* `npm run build` compile typescript to js | ||
* `npm run watch` watch for changes and compile | ||
* `npm run test` perform the jest unit tests | ||
* `npx cdk deploy` deploy this stack to your default AWS account/region | ||
* `npx cdk diff` compare deployed stack with current state | ||
* `npx cdk synth` emits the synthesized CloudFormation template |
20 changes: 20 additions & 0 deletions
20
lib/workload/stateless/cttso_v2_pipeline_manager/deploy/bin/deploy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env node | ||
import 'source-map-support/register'; | ||
import * as cdk from 'aws-cdk-lib'; | ||
import { ctTSOV2LaunchStateMachineStack } from '../lib/stacks/cttso_v2_launch_stack'; | ||
import { | ||
ICAV2_COPY_BATCH_UTILITY_STATE_MACHINE_ARN_SSM_PARAMETER_PATH, | ||
ICAV2_JWT_SECRET_ARN_SSM_PARAMETER_PATH, | ||
SSM_PARAMETER_LIST_FOR_CTTSO_LAUNCH_LAMBDAS, | ||
} from '../constants'; | ||
|
||
const app = new cdk.App(); | ||
new ctTSOV2LaunchStateMachineStack(app, 'ctTSOv2LaunchStatemachineStack', { | ||
icav2_jwt_ssm_parameter_path: ICAV2_JWT_SECRET_ARN_SSM_PARAMETER_PATH, | ||
ssm_parameter_list: SSM_PARAMETER_LIST_FOR_CTTSO_LAUNCH_LAMBDAS, | ||
icav2_copy_batch_utility_state_machine_ssm_parameter_path: ICAV2_COPY_BATCH_UTILITY_STATE_MACHINE_ARN_SSM_PARAMETER_PATH, | ||
env: { | ||
account: process.env.CDK_DEFAULT_ACCOUNT, | ||
region: process.env.CDK_DEFAULT_REGION | ||
}, | ||
}); |
65 changes: 65 additions & 0 deletions
65
lib/workload/stateless/cttso_v2_pipeline_manager/deploy/cdk.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"app": "npx ts-node --prefer-ts-exts bin/deploy.ts", | ||
"watch": { | ||
"include": [ | ||
"**" | ||
], | ||
"exclude": [ | ||
"README.md", | ||
"cdk*.json", | ||
"**/*.d.ts", | ||
"**/*.js", | ||
"tsconfig.json", | ||
"package*.json", | ||
"yarn.lock", | ||
"node_modules", | ||
"test" | ||
] | ||
}, | ||
"context": { | ||
"@aws-cdk/aws-lambda:recognizeLayerVersion": true, | ||
"@aws-cdk/core:checkSecretUsage": true, | ||
"@aws-cdk/core:target-partitions": [ | ||
"aws", | ||
"aws-cn" | ||
], | ||
"@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver": true, | ||
"@aws-cdk/aws-ec2:uniqueImdsv2TemplateName": true, | ||
"@aws-cdk/aws-ecs:arnFormatIncludesClusterName": true, | ||
"@aws-cdk/aws-iam:minimizePolicies": true, | ||
"@aws-cdk/core:validateSnapshotRemovalPolicy": true, | ||
"@aws-cdk/aws-codepipeline:crossAccountKeyAliasStackSafeResourceName": true, | ||
"@aws-cdk/aws-s3:createDefaultLoggingPolicy": true, | ||
"@aws-cdk/aws-sns-subscriptions:restrictSqsDescryption": true, | ||
"@aws-cdk/aws-apigateway:disableCloudWatchRole": true, | ||
"@aws-cdk/core:enablePartitionLiterals": true, | ||
"@aws-cdk/aws-events:eventsTargetQueueSameAccount": true, | ||
"@aws-cdk/aws-iam:standardizedServicePrincipals": true, | ||
"@aws-cdk/aws-ecs:disableExplicitDeploymentControllerForCircuitBreaker": true, | ||
"@aws-cdk/aws-iam:importedRoleStackSafeDefaultPolicyName": true, | ||
"@aws-cdk/aws-s3:serverAccessLogsUseBucketPolicy": true, | ||
"@aws-cdk/aws-route53-patters:useCertificate": true, | ||
"@aws-cdk/customresources:installLatestAwsSdkDefault": false, | ||
"@aws-cdk/aws-rds:databaseProxyUniqueResourceName": true, | ||
"@aws-cdk/aws-codedeploy:removeAlarmsFromDeploymentGroup": true, | ||
"@aws-cdk/aws-apigateway:authorizerChangeDeploymentLogicalId": true, | ||
"@aws-cdk/aws-ec2:launchTemplateDefaultUserData": true, | ||
"@aws-cdk/aws-secretsmanager:useAttachedSecretResourcePolicyForSecretTargetAttachments": true, | ||
"@aws-cdk/aws-redshift:columnId": true, | ||
"@aws-cdk/aws-stepfunctions-tasks:enableEmrServicePolicyV2": true, | ||
"@aws-cdk/aws-ec2:restrictDefaultSecurityGroup": true, | ||
"@aws-cdk/aws-apigateway:requestValidatorUniqueId": true, | ||
"@aws-cdk/aws-kms:aliasNameRef": true, | ||
"@aws-cdk/aws-autoscaling:generateLaunchTemplateInsteadOfLaunchConfig": true, | ||
"@aws-cdk/core:includePrefixInUniqueNameGeneration": true, | ||
"@aws-cdk/aws-efs:denyAnonymousAccess": true, | ||
"@aws-cdk/aws-opensearchservice:enableOpensearchMultiAzWithStandby": true, | ||
"@aws-cdk/aws-lambda-nodejs:useLatestRuntimeVersion": true, | ||
"@aws-cdk/aws-efs:mountTargetOrderInsensitiveLogicalId": true, | ||
"@aws-cdk/aws-rds:auroraClusterChangeScopeOfInstanceParameterGroupWithEachParameters": true, | ||
"@aws-cdk/aws-appsync:useArnForSourceApiAssociationIdentifier": true, | ||
"@aws-cdk/aws-rds:preventRenderingDeprecatedCredentials": true, | ||
"@aws-cdk/aws-codepipeline-actions:useNewDefaultBranchForCodeCommitSource": true, | ||
"@aws-cdk/aws-cloudwatch-actions:changeLambdaPermissionLogicalIdForLambdaAction": true | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
lib/workload/stateless/cttso_v2_pipeline_manager/deploy/constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
export const DYNAMODB_ARN_SSM_PARAMETER_PATH = "/umccr/orcabus/stateful/cttso_v2_pipeline_dynamo_db/analysis_table_arn" | ||
|
||
export const CTTSO_CACHE_ROOT_SSM_PARAMETER_PATH = "/icav2/umccr-prod/cache_project_cttso_fastq_path" | ||
export const CTTSO_OUTPUT_ROOT_SSM_PARAMETER_PATH = "/icav2/umccr-prod/output_project_cttso_fastq_path" | ||
|
||
export const ICAV2_JWT_SECRET_ARN_SSM_PARAMETER_PATH = "/icav2/umccr-prod/service-user-trial-jwt-token-secret-arn" | ||
export const ICAV2_COPY_BATCH_UTILITY_STATE_MACHINE_ARN_SSM_PARAMETER_PATH = "/icav2_copy_batch_utility/state_machine_arn" | ||
export const PIPELINE_ID_SSM_PARAMETER_PATH = "/icav2/umccr-prod/tso500_ctdna_2.1_pipeline_id" | ||
|
||
|
||
export const SSM_PARAMETER_LIST_FOR_CTTSO_LAUNCH_LAMBDAS = [ | ||
CTTSO_CACHE_ROOT_SSM_PARAMETER_PATH, | ||
CTTSO_OUTPUT_ROOT_SSM_PARAMETER_PATH, | ||
ICAV2_JWT_SECRET_ARN_SSM_PARAMETER_PATH, | ||
PIPELINE_ID_SSM_PARAMETER_PATH | ||
] |
8 changes: 8 additions & 0 deletions
8
lib/workload/stateless/cttso_v2_pipeline_manager/deploy/jest.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = { | ||
testEnvironment: 'node', | ||
roots: ['<rootDir>/test'], | ||
testMatch: ['**/*.test.ts'], | ||
transform: { | ||
'^.+\\.tsx?$': 'ts-jest' | ||
} | ||
}; |
Oops, something went wrong.