Skip to content

Commit 078b99c

Browse files
authored
Merge pull request #80 from narendran1560/topic-release
Property "PropagateTagsToVolumeOnCreation" added to the EC2Instance Resource to propagate the EBS Volume
2 parents e96390e + b9a540d commit 078b99c

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

cft-templates/cromwell-advanced.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,7 @@ Resources:
867867
ImageId: !Ref 'LatestAmiId'
868868
InstanceType: !Ref InstanceType
869869
IamInstanceProfile: !Ref EC2InstanceProfile
870+
PropagateTagsToVolumeOnCreation: true
870871
SecurityGroupIds:
871872
- { "Fn::GetAtt" : ["EC2SecurityGroup", "GroupId"] }
872873
KeyName: !Ref 'KeyPair'

cft-templates/nextflow-advanced.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,8 +608,15 @@ Resources:
608608
process.container = '${PipelineContainer}'
609609
process.executor = 'awsbatch'
610610
process.queue = '${DefaultQueue}'
611-
workDir = 's3://${S3Bucket}/${AWS::StackName}'
611+
workDir = 's3://${S3Bucket}/${AWS::StackName}'
612+
process.errorStrategy = {
613+
sleep( Math.pow( 2, task.attempt ) * 150 as long )
614+
return 'retry'
615+
}
616+
process.maxRetries = 5
612617
aws.batch.cliPath = '/home/ec2-user/miniconda/bin/aws'
618+
aws.batch.maxParallelTransfers = 5
619+
aws.batch.maxTransferAttempts = 5
613620
}
614621
}
615622

@@ -649,6 +656,7 @@ Resources:
649656
KeyName: !Ref 'KeyPair'
650657
ImageId: '{{resolve:ssm:/RL/RG/StandardCatalog/nextflow-latest}}'
651658
IamInstanceProfile: !Ref IamInstanceProfile
659+
PropagateTagsToVolumeOnCreation: true
652660
BlockDeviceMappings:
653661
- DeviceName: /dev/xvda
654662
Ebs:

0 commit comments

Comments
 (0)