You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 9, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: docs/orchestration/step-functions/step-functions-overview.md
+44-2Lines changed: 44 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,17 @@ In the context of genomics workflows, the combination of AWS Step Functions with
8
8
9
9
## Full Stack Deployment (TL;DR)
10
10
11
-
If you need something up and running in a hurry, a fully automated setup process
12
-
is provided at this GitHub repository:
11
+
If you need something up and running in a hurry, the follwoing CloudFormation template will create everything you need to run an example genomics workflow using `bwa-mem`, `samtools`, and `bcftools`.
12
+
13
+
| Name | Description | Source | Launch Stack |
14
+
| -- | -- | :--: | :--: |
15
+
{{ cfn_stack_row("AWS Step Functions All-in-One Example", "AWSGenomicsWorkflow", "step-functions/sfn-aio.template.yaml", "Create all resources needed to run a genomics workflow with Step Functions: an S3 Bucket, AWS Batch Environment, State Machine, Batch Job Definitions, and container images") }}
16
+
17
+
Another example that uses a scripted setup process is provided at this GitHub repository:
If you are interested in creating your own solution with AWS Step Functions and AWS Batch,
17
23
read through the rest of this page.
18
24
@@ -219,3 +225,39 @@ Inputs to a state machine that uses the above `BwaMemTask` would look like this:
219
225
```
220
226
221
227
When the Task state completes Step Functions will add information to a new `status` key under `bwa-mem` in the JSON object. The complete object will be passed on to the next state in the workflow.
228
+
229
+
## Example state machine
230
+
231
+
All of the above is created by the following CloudFormation template.
232
+
233
+
| Name | Description | Source | Launch Stack |
234
+
| -- | -- | :--: | :--: |
235
+
{{ cfn_stack_row("AWS Step Functions Example", "SfnExample", "step-functions/sfn-example.template.yaml", "Create a Step Functions State Machine, Batch Job Definitions, and container images to run an example genomics workflow") }}
236
+
237
+
!!! note
238
+
The stack above needs to create several IAM Roles. You must have administrative privileges in your AWS Account for this to succeed.
239
+
240
+
### Running the workflow
241
+
242
+
When the stack above completes, go to the outputs tab and copy the JSON string provided in `StateMachineInput`.
In the dialog that appears, paste the input JSON into the "Input" field, and click the "Start Execution" button. (A unique execution ID will be automatically generated).
Copy file name to clipboardExpand all lines: docs/tldr.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,7 @@ Below are the stand-alone CloudFormation templates for each of the sub-stacks. T
60
60
61
61
| Name | Description | Source | Launch Stack |
62
62
| -- | -- | :--: | :--: |
63
+
{{ cfn_stack_row("AWS Step Functions Example", "SfnExample", "step-functions/sfn-example.template.yaml", "Create a Step Functions State Machine, Batch Job Definitions, and container images to run an example genomics workflow") }}
63
64
{{ cfn_stack_row("Cromwell Server", "CromwellServer", "cromwell/cromwell-server.template.yaml", "Create an EC2 instance and an IAM instance profile to run Cromwell") }}
64
65
{{ cfn_stack_row("Nextflow Resources", "NextflowResources", "nextflow/nextflow-resources.template.yaml", "Create Nextflow specific resources needed to run on AWS: an S3 Bucket for nextflow config and workflows, AWS Batch Job Definition for a Nextflow head node, and an IAM role for the nextflow head node job") }}
0 commit comments