Skip to content

Commit d4e05a9

Browse files
authored
Merge pull request #60 from narendran1560/topic-release
Added new parameter called namespace to the S3 CFT
2 parents 65ce3c2 + 1e72877 commit d4e05a9

2 files changed

Lines changed: 19 additions & 6 deletions

File tree

cft-templates/nextflow-advanced.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Parameters:
8888
Description: Head Node EC2 instance type
8989
Type: String
9090
Default: t2.small
91-
AllowedValues: [t2.nano, t2.micro, t2.small, t2.medium]
91+
AllowedValues: [t2.nano, t2.micro, t2.small, t2.medium, t2.large, m5.8xlarge]
9292
ConstraintDescription: Must be a valid EC2 instance type.
9393
KeyPair:
9494
Description: Name of an existing EC2 KeyPair to enable SSH access to the Head Node. If no key pairs exist, please create one from the button next to the dropdown. Please contact your Administrator if you are unable to create one.
@@ -110,7 +110,7 @@ Parameters:
110110
Description: Specify the instance types to be used to carry out the computation. You can specify one or more family or instance type. The option 'optimal' chooses the best fit of M4, C4, and R4 instance types available in the region.
111111
Type: String
112112
Default: optimal
113-
AllowedValues: [optimal, c4.large, m4.large, r4.large, c4.4xlarge, m4.4xlarge, r4.4xlarge]
113+
AllowedValues: [optimal, c4.large, m4.large, r4.large, c4.4xlarge, m4.4xlarge, r4.4xlarge, r5.8xlarge, r5.12xlarge, r5.16xlarge, r5.24xlarge, c6i.32xlarge]
114114
WorkerNodeEBSVolumeSize:
115115
Description: The initial size of the volume (in GBs) Worker Node EBS will use for storage.
116116
Type: Number
@@ -505,8 +505,7 @@ Resources:
505505
LaunchTemplateId: !Ref EC2LaunchTemplate
506506
Version: $Latest
507507
InstanceRole: !GetAtt BatchInstanceProfile.Arn
508-
InstanceTypes:
509-
- !Ref WorkerNodeInstanceType
508+
InstanceTypes: [c5, c5a, c5ad, c5d, i3, m5, r5, c6i ]
510509
MinvCpus: !Ref ComputeEnvMinvCpus
511510
MaxvCpus: !Ref ComputeEnvMaxvCpus
512511
SecurityGroupIds:
@@ -608,8 +607,15 @@ Resources:
608607
process.container = '${PipelineContainer}'
609608
process.executor = 'awsbatch'
610609
process.queue = '${DefaultQueue}'
611-
workDir = 's3://${S3Bucket}/${AWS::StackName}'
610+
workDir = 's3://${S3Bucket}/${AWS::StackName}'
611+
process.errorStrategy = {
612+
sleep( Math.pow( 2, task.attempt ) * 150 as long )
613+
return 'retry'
614+
}
615+
process.maxRetries = 5
612616
aws.batch.cliPath = '/home/ec2-user/miniconda/bin/aws'
617+
aws.batch.maxParallelTransfers = 5
618+
aws.batch.maxTransferAttempts = 5
613619
}
614620
}
615621

cft-templates/s3.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
AWSTemplateFormatVersion: '2010-09-09'
22
Description: create a single S3 bucket
33

4+
Parameters:
5+
Namespace:
6+
Type: String
7+
Description: An environment name that will be prefixed to resource names
8+
49
Resources:
510
SampleBucket:
611
Type: AWS::S3::Bucket
12+
Properties:
13+
BucketName: !Ref Namespace
714

815
Outputs:
916
BucketArn:
1017
Value: !GetAtt [SampleBucket, Arn]
1118
Description: URL for website hosted on S3
1219
BucketName:
1320
Value: !Ref SampleBucket
14-
Description: Name of S3 bucket
21+
Description: Name of S3 bucket

0 commit comments

Comments
 (0)