@@ -23,6 +23,7 @@ Metadata:
2323 - Label :
2424 default : " VPC"
2525 Parameters :
26+ - Namespace
2627 - VpcId
2728 - SubnetIds
2829 - Label :
@@ -47,6 +48,8 @@ Metadata:
4748 - NextflowVersionSpecified
4849
4950 ParameterLabels :
51+ Namespace :
52+ default : Namespace
5053 VpcId :
5154 default : VPC ID
5255 SubnetIds :
@@ -78,6 +81,13 @@ Metadata:
7881
7982
8083Parameters :
84+ Namespace :
85+ Type : String
86+ Description : Namespace (e.g. project name) to use to label resources. Between 4-20 letters, digits, and '-', starting with a letter.
87+ AllowedPattern : " ^[a-zA-Z]{1}[a-zA-Z0-9\\ -]{3,19}$"
88+ ConstraintDescription : " Between 4-20 letters, digits, '-', starting with a letter"
89+ Default : " nextflow"
90+
8191 VpcId :
8292 Type : AWS::EC2::VPC::Id
8393 Description : ' The VPC to create security groups and deploy AWS Batch to. NOTE: Must be the same VPC as the provided subnet IDs.'
@@ -179,7 +189,7 @@ Resources:
179189 Properties :
180190 TemplateURL : !Sub ${TemplateRootUrl}/gwfcore/gwfcore-root.template.yaml
181191 Parameters :
182- Namespace : !Sub ${AWS::StackName }-gwfcore
192+ Namespace : !Sub ${Namespace }-gwfcore
183193 VpcId : !Ref VpcId
184194 SubnetIds : !Join [",", !Ref SubnetIds ]
185195 S3BucketName : !Ref S3DataBucketName
@@ -199,8 +209,8 @@ Resources:
199209 Properties :
200210 TemplateURL : !Sub ${TemplateRootUrl}/nextflow/nextflow-resources.template.yaml
201211 Parameters :
202- Namespace : !Sub ${AWS::StackName }-nextflow
203- GWFCoreNamespace : !Sub "${AWS::StackName }-gwfcore"
212+ Namespace : !Sub ${Namespace }-nextflow
213+ GWFCoreNamespace : !Sub "${Namespace }-gwfcore"
204214 S3NextflowPrefix : !Ref S3NextflowPrefix
205215 S3LogsDirPrefix : !Ref S3LogsDirPrefix
206216 S3WorkDirPrefix : !Ref S3WorkDirPrefix
@@ -214,31 +224,31 @@ Outputs:
214224 NextflowContainerImage :
215225 Value : !GetAtt NextflowStack.Outputs.NextflowContainerImage
216226 Export :
217- Name : !Sub "${AWS::StackName }-NextflowContainerImage"
227+ Name : !Sub "${Namespace }-NextflowContainerImage"
218228
219229 NextflowJobDefinition :
220230 Value : !GetAtt NextflowStack.Outputs.NextflowJobDefinition
221231 Export :
222- Name : !Sub "${AWS::StackName }-NextflowJobDefinition"
232+ Name : !Sub "${Namespace }-NextflowJobDefinition"
223233 Description : >-
224234 Batch Job Definition that creates a nextflow head node for running workflows
225235
226236 S3NextFlowBucket :
227237 Value : !GetAtt NextflowStack.Outputs.NextflowBucket
228238 Export :
229- Name : !Sub "${AWS::StackName }-NextflowBucket"
239+ Name : !Sub "${Namespace }-NextflowBucket"
230240 Description : >-
231241 S3 Bucket used to store Nextflow metadata (session cache, logs, and intermediate results)
232242 S3NextflowLogsDir :
233243 Value : !GetAtt NextflowStack.Outputs.LogsDir
234244 Export :
235- Name : !Sub "${AWS::StackName }-NextflowLogsDir"
245+ Name : !Sub "${Namespace }-NextflowLogsDir"
236246 Description : >-
237247 S3 URI where nextflow session cache and logs are stored.
238248 S3NextflowWorkDir :
239249 Value : !GetAtt NextflowStack.Outputs.WorkDir
240250 Export :
241- Name : !Sub "${AWS::StackName }-NextflowWorkDir"
251+ Name : !Sub "${Namespace }-NextflowWorkDir"
242252 Description : >-
243253 S3 URI where workflow intermediate results are stored.
244254
@@ -249,19 +259,19 @@ Outputs:
249259 S3DataBucket :
250260 Value : !GetAtt 'GenomicsWorkflowStack.Outputs.S3BucketName'
251261 Export :
252- Name : !Sub "${AWS::StackName }-DataBucket"
262+ Name : !Sub "${Namespace }-DataBucket"
253263 Description : >-
254264 S3 bucket for storing genomics workflow input and output data
255265 BatchDefaultQueue :
256266 Value : !GetAtt 'GenomicsWorkflowStack.Outputs.DefaultJobQueueArn'
257267 Export :
258- Name : !Sub "${AWS::StackName }-DefaultJobQueue"
268+ Name : !Sub "${Namespace }-DefaultJobQueue"
259269 Description : >-
260270 The default AWS Batch job queue for workflow jobs, based on EC2 SPOT instances
261271 BatchPriorityQueue :
262272 Value : !GetAtt 'GenomicsWorkflowStack.Outputs.PriorityJobQueueArn'
263273 Export :
264- Name : !Sub "${AWS::StackName }-PriorityJobQueue"
274+ Name : !Sub "${Namespace }-PriorityJobQueue"
265275 Description : >-
266276 AWS Batch job queue for high priority workflow jobs, based on EC2 On-Demand
267277 instances
0 commit comments