Skip to content

Commit 8a4cf9d

Browse files
authored
Merge pull request #56 from narendran1560/topic-release
Nextflow CFT upgrade
2 parents dc40862 + 407b46b commit 8a4cf9d

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

cft-templates/nextflow-advanced.yaml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -522,11 +522,8 @@ Resources:
522522
Type: AWS::Batch::JobQueue
523523
Properties:
524524
Tags:
525-
Name: !Sub worker-node-queue-${AWS::StackName}
526-
JobQueueName:
527-
!Sub
528-
- 'job-queue-${RandomGUID}'
529-
- { RandomGUID: !Select [0, !Split ["-", !Select [2, !Split ["/", !Ref AWS::StackId ]]]] }
525+
Name: !Sub worker-node-queue-${Namespace}
526+
JobQueueName: !Sub worker-node-queue-${Namespace}
530527
Priority: 1
531528
State: ENABLED
532529
ComputeEnvironmentOrder:
@@ -545,7 +542,9 @@ Resources:
545542
exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1
546543

547544
cd /usr/bin
548-
curl -s https://get.nextflow.io | bash
545+
sudo wget https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.rpm
546+
sudo rpm -ivh jdk-17_linux-x64_bin.rpm
547+
sudo wget -qO- https://github.com/nextflow-io/nextflow/releases/download/v21.11.0-edge/nextflow-21.11.0-edge-all | sudo bash
549548

550549
sudo yum update -y --security
551550
cd /root/
@@ -583,7 +582,10 @@ Resources:
583582
echo $InputDataLocation
584583
fi
585584

586-
cd .nextflow/
585+
sudo chown -R ec2-user:ec2-user /usr/bin/nextflow
586+
sudo cp -prf /root/.nextflow/ /home/ec2-user/
587+
cd /home/ec2-user/.nextflow/
588+
587589
PROJECT_NF_CONFIG=config
588590

589591
cat << EOF >> $PROJECT_NF_CONFIG
@@ -640,7 +642,7 @@ Resources:
640642
chmod 500 "/tmp/get_bootstrap.sh"
641643
/tmp/get_bootstrap.sh "${EnvironmentInstanceFiles}" '${S3Mounts}'
642644
/opt/aws/bin/cfn-signal --exit-code 0 --resource EC2Instance --region ${AWS::Region} --stack ${AWS::StackName}
643-
645+
644646
InstanceType: !Ref 'InstanceType'
645647
SecurityGroupIds:
646648
- { "Fn::GetAtt" : ["InstanceSecurityGroup", "GroupId"] }
@@ -711,3 +713,5 @@ Outputs:
711713
Value: !Ref EC2LaunchTemplate
712714
WorkDataLocation:
713715
Value: !Sub ${S3Bucket}
716+
BatchQueue:
717+
Value: !Sub ${DefaultQueue}

0 commit comments

Comments
 (0)