Skip to content

Commit 1b53e98

Browse files
updated java 17.0.2. executed cmd
Updated java 17.0.2. executed cmd in the provisioning script.
1 parent 268a8f0 commit 1b53e98

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

cft-templates/nextflow-advanced.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ Parameters:
133133
Description: >-
134134
An S3 URI (starting with "s3://") that specifies the location of files to be copied to
135135
the environment instance, including any bootstrap scripts
136+
PipelineCommand:
137+
Type: String
138+
Description: The pipeline command is used to be executed in the ec2 instance head node
136139

137140
Conditions:
138141
IamPolicyEmpty: !Equals [!Ref IamPolicyDocument, '{}']
@@ -545,6 +548,8 @@ Resources:
545548
exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1
546549

547550
cd /usr/bin
551+
sudo wget https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.rpm
552+
sudo rpm -ivh jdk-17_linux-x64_bin.rpm
548553
curl -s https://get.nextflow.io | bash
549554

550555
sudo yum update -y --security
@@ -640,7 +645,7 @@ Resources:
640645
chmod 500 "/tmp/get_bootstrap.sh"
641646
/tmp/get_bootstrap.sh "${EnvironmentInstanceFiles}" '${S3Mounts}'
642647
/opt/aws/bin/cfn-signal --exit-code 0 --resource EC2Instance --region ${AWS::Region} --stack ${AWS::StackName}
643-
648+
644649
InstanceType: !Ref 'InstanceType'
645650
SecurityGroupIds:
646651
- { "Fn::GetAtt" : ["InstanceSecurityGroup", "GroupId"] }

0 commit comments

Comments
 (0)