Skip to content
This repository was archived by the owner on Aug 9, 2023. It is now read-only.

Commit 4304e11

Browse files
authored
Merge pull request #63 from wleepang/master
update aio templates
2 parents 90e90d7 + 82cd60f commit 4304e11

File tree

4 files changed

+46
-30
lines changed

4 files changed

+46
-30
lines changed

src/templates/aws-genomics-s3.template.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ Resources:
6060
- ServerSideEncryptionByDefault:
6161
SSEAlgorithm: AES256
6262
Tags:
63-
- Key: Name
64-
Value: genomics-base-ami
6563
- Key: architecture
6664
Value: !FindInMap ["TagMap", "default", "architecture"]
6765

src/templates/cromwell/cromwell-aio.template.yaml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
AWSTemplateFormatVersion: "2010-09-09"
23
Description: >-
34
(WWPS-GLS-WF-CROMWELL-AIO) Creates the complete set of resources needed to run
@@ -20,11 +21,13 @@ Metadata:
2021
ParameterGroups:
2122
- Label:
2223
default: "Required"
24+
Parameters:
25+
- KeyPairName
26+
- Label:
27+
default: "Data Storage"
2328
Parameters:
2429
- S3BucketName
2530
- ExistingBucket
26-
- KeyPairName
27-
- AvailabilityZones
2831
- Label:
2932
default: "AWS Batch"
3033
Parameters:
@@ -65,9 +68,6 @@ Metadata:
6568

6669
# Parameters
6770
Parameters:
68-
AvailabilityZones:
69-
Description: "Choose the two Availability Zones to deploy instances for AWS Batch."
70-
Type: List<AWS::EC2::AvailabilityZone::Name>
7171
S3BucketName:
7272
Description: >-
7373
A S3 bucket name for storing analysis results.
@@ -86,7 +86,7 @@ Parameters:
8686
- No
8787
Default: No
8888
KeyPairName:
89-
Description: Key Pair name
89+
Description: Key Pair name used for SSH access to the Cromwell Server.
9090
Type: AWS::EC2::KeyPair::KeyName
9191
SpotBidPercentage:
9292
Description: The percent of on-demand pricing for max bid for Spot intances
@@ -159,7 +159,7 @@ Parameters:
159159

160160
ArtifactRootUrl:
161161
Type: String
162-
Default: https://aws-genomics-workflows.s3.amazonaws.com/artifacts
162+
Default: https://s3.amazonaws.com/aws-genomics-workflows/artifacts
163163
Description: >-
164164
Root URL for where artifacts / additions scripts are stored
165165
@@ -185,9 +185,12 @@ Resources:
185185
TemplateURL: https://aws-quickstart.s3.amazonaws.com/quickstart-aws-vpc/templates/aws-vpc.template
186186
TimeoutInMinutes: 15
187187
Parameters:
188-
AvailabilityZones: !Join ["," , !Ref AvailabilityZones]
188+
AvailabilityZones:
189+
Fn::Join:
190+
- ","
191+
- - !Sub "${AWS::Region}a"
192+
- !Sub "${AWS::Region}b"
189193
NumberOfAZs: "2"
190-
KeyPairName: !Ref KeyPairName
191194
Tags: !FindInMap ["TagMap", "default", "tags"]
192195

193196
GenomicsWorkflowStack:
@@ -199,7 +202,6 @@ Resources:
199202
SubnetIds: !Sub "${VpcStack.Outputs.PrivateSubnet1AID}, ${VpcStack.Outputs.PrivateSubnet2AID}"
200203
S3BucketName: !Ref S3BucketName
201204
ExistingBucket: !Ref ExistingBucket
202-
KeyPairName: !Ref 'KeyPairName'
203205
WorkflowOrchestrator: cromwell
204206
SpotBidPercentage: !Ref 'SpotBidPercentage'
205207
DefaultCEMinvCpus: !Ref 'DefaultCEMinvCpus'
@@ -233,6 +235,8 @@ Resources:
233235
Outputs:
234236
CromwellServerHostName:
235237
Value: !GetAtt 'CromwellServerStack.Outputs.HostName'
238+
Export:
239+
Name: !Sub "${AWS::StackName}-CromwellServerHostName"
236240
Description: >-
237241
Cromwell server public DNS name. Use this URL in a web browser or via curl
238242
to access Cromwell and submit workflows.
@@ -251,14 +255,21 @@ Outputs:
251255
Value: !GetAtt 'VpcStack.Outputs.VPCID'
252256
S3Bucket:
253257
Value: !GetAtt 'GenomicsWorkflowStack.Outputs.GenomicsEnvS3Bucket'
258+
Export:
259+
Name: !Sub "${AWS::StackName}-S3Bucket"
254260
Description: >-
255261
S3 bucket for storing genomics workflow input and output data
256262
BatchDefaultQueue:
257263
Value: !GetAtt 'GenomicsWorkflowStack.Outputs.GenomicsEnvDefaultJobQueueArn'
264+
Export:
265+
Name: !Sub "${AWS::StackName}-DefaultJobQueue"
258266
Description: >-
259267
The default AWS Batch job queue for workflow jobs, based on EC2 SPOT instances
260268
BatchHighPriorityQueue:
261269
Value: !GetAtt 'GenomicsWorkflowStack.Outputs.GenomicsEnvHighPriorityJobQueueArn'
270+
Export:
271+
Name: !Sub "${AWS::StackName}-HighPriorityJobQueue"
262272
Description: >-
263273
AWS Batch job queue for high priority workflow jobs, based on EC2 On-Demand
264274
instances
275+
...

src/templates/nextflow/nextflow-aio.template.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Metadata:
2121
AWS::CloudFormation::Interface:
2222
ParameterGroups:
2323
- Label:
24-
default: "Required"
24+
default: "Data Storage"
2525
Parameters:
2626
- S3DataBucketName
2727
- ExistingDataBucket
@@ -141,7 +141,7 @@ Parameters:
141141
Type: String
142142
Description: >-
143143
Root URL for where nested templates are stored
144-
Default: https://s3.amazonaws.com/pwyming-demo-templates/nextflow-workshop
144+
Default: https://s3.amazonaws.com/aws-genomics-workflows/templates
145145
ConstraintDescription: >-
146146
Must be a valid S3 URL
147147
AllowedPattern: "https://s3(-[a-z0-9]+)*\\.amazonaws\\.com/[a-z0-9-./]{3,}"
@@ -214,6 +214,8 @@ Resources:
214214
Outputs:
215215
NextflowContainerImage:
216216
Value: !GetAtt NextflowStack.Outputs.NextflowContainerImage
217+
Export:
218+
Name: !Sub "${AWS::StackName}-NextflowJobDefinition"
217219

218220
NextflowJobDefinition:
219221
Value: !GetAtt NextflowStack.Outputs.NextflowJobDefinition
@@ -263,4 +265,5 @@ Outputs:
263265
Name: !Sub "${AWS::StackName}-HighPriorityJobQueue"
264266
Description: >-
265267
AWS Batch job queue for high priority workflow jobs, based on EC2 On-Demand
266-
instances
268+
instances
269+
...

src/templates/step-functions/sfn-aio.template.yaml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,10 @@ Metadata:
1919
AWS::CloudFormation::Interface:
2020
ParameterGroups:
2121
- Label:
22-
default: "Required"
22+
default: "Data Storage"
2323
Parameters:
2424
- S3BucketName
2525
- ExistingBucket
26-
- KeyPairName
27-
- AvailabilityZones
2826
- Label:
2927
default: "AWS Batch"
3028
Parameters:
@@ -43,8 +41,6 @@ Metadata:
4341
default: S3 Bucket Name
4442
ExistingBucket:
4543
default: Existing Bucket?
46-
KeyPairName:
47-
default: EC2 Key Pair Name
4844
SpotBidPercentage:
4945
default: Spot Bid %
5046
DefaultCEMinvCpus:
@@ -60,9 +56,6 @@ Metadata:
6056

6157
# Parameters
6258
Parameters:
63-
AvailabilityZones:
64-
Description: "Choose the two Availability Zones to deploy instances for AWS Batch."
65-
Type: List<AWS::EC2::AvailabilityZone::Name>
6659
S3BucketName:
6760
Description: >-
6861
A S3 bucket name for storing analysis results.
@@ -79,9 +72,6 @@ Parameters:
7972
- Yes
8073
- No
8174
Default: No
82-
KeyPairName:
83-
Description: Key Pair name
84-
Type: AWS::EC2::KeyPair::KeyName
8575
SpotBidPercentage:
8676
Description: The percent of on-demand pricing for max bid for Spot intances
8777
Type: Number
@@ -113,7 +103,7 @@ Parameters:
113103

114104
ArtifactRootUrl:
115105
Type: String
116-
Default: https://aws-genomics-workflows.s3.amazonaws.com/artifacts
106+
Default: https://s3.amazonaws.com/aws-genomics-workflows/artifacts
117107
Description: >-
118108
Root URL for where artifacts / additions scripts are stored
119109
@@ -134,9 +124,12 @@ Resources:
134124
TemplateURL: https://aws-quickstart.s3.amazonaws.com/quickstart-aws-vpc/templates/aws-vpc.template
135125
TimeoutInMinutes: 15
136126
Parameters:
137-
AvailabilityZones: !Join ["," , !Ref AvailabilityZones]
127+
AvailabilityZones:
128+
Fn::Join:
129+
- ","
130+
- - !Sub "${AWS::Region}a"
131+
- !Sub "${AWS::Region}b"
138132
NumberOfAZs: "2"
139-
KeyPairName: !Ref KeyPairName
140133
Tags: !FindInMap ["TagMap", "default", "tags"]
141134

142135
GenomicsWorkflowStack:
@@ -148,7 +141,6 @@ Resources:
148141
SubnetIds: !Sub "${VpcStack.Outputs.PrivateSubnet1AID}, ${VpcStack.Outputs.PrivateSubnet2AID}"
149142
S3BucketName: !Ref S3BucketName
150143
ExistingBucket: !Ref ExistingBucket
151-
KeyPairName: !Ref 'KeyPairName'
152144
WorkflowOrchestrator: step-functions
153145
SpotBidPercentage: !Ref 'SpotBidPercentage'
154146
DefaultCEMinvCpus: !Ref 'DefaultCEMinvCpus'
@@ -173,22 +165,34 @@ Resources:
173165
Outputs:
174166
StateMachine:
175167
Value: !GetAtt 'SfnStack.Outputs.StateMachine'
168+
Export:
169+
Name: !Sub ${AWS::StackName}-StateMachine
176170
Description: >-
177171
Example AWS Step Functions state machine
178172
StateMachineInput:
179173
Value: !GetAtt 'SfnStack.Outputs.StateMachineInput'
180174
Description: >-
181175
Example input for the state machine. Use this when executing your workflow.
176+
VpcId:
177+
Description: >-
178+
The VPC created for your Nextflow stack.
179+
Value: !GetAtt 'VpcStack.Outputs.VPCID'
182180
S3Bucket:
183181
Value: !GetAtt 'GenomicsWorkflowStack.Outputs.GenomicsEnvS3Bucket'
182+
Export:
183+
Name: !Sub ${AWS::StackName}-S3Bucket
184184
Description: >-
185185
S3 bucket for storing genomics workflow input and output data
186186
BatchDefaultQueue:
187187
Value: !GetAtt 'GenomicsWorkflowStack.Outputs.GenomicsEnvDefaultJobQueueArn'
188+
Export:
189+
Name: !Sub ${AWS::StackName}-DefaultJobQueue
188190
Description: >-
189191
The default AWS Batch job queue for workflow jobs, based on EC2 SPOT instances
190192
BatchHighPriorityQueue:
191193
Value: !GetAtt 'GenomicsWorkflowStack.Outputs.GenomicsEnvHighPriorityJobQueueArn'
194+
Export:
195+
Name: !Sub ${AWS::StackName}-HighPrioirityJobQueue
192196
Description: >-
193197
AWS Batch job queue for high priority workflow jobs, based on EC2 On-Demand
194198
instances

0 commit comments

Comments
 (0)