Skip to content

Commit 4287cdb

Browse files
committed
Fix issue with EFS mount requiring TLS
1 parent 53a0c19 commit 4287cdb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

recipes/pcs/try_amd/assets/cluster.cfn.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ Resources:
275275
# Mount EFS filesystem as /home
276276
- mkdir -p /tmp/home
277277
- rsync -a /home/ /tmp/home
278-
- sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport ${EfsFilesystem}.efs.${Region}.amazonaws.com:/ /home
278+
- echo "${EfsFilesystem}:/ /home efs tls,_netdev" >> /etc/fstab
279279
- mount -a -t efs defaults
280280
- if [ "enabled" == "$(sestatus | awk "/^SELinux status:/{print $3}")" ]; then setsebool -P use_nfs_home_dirs 1; fi
281281
- rsync -a --ignore-existing /tmp/home/ /home
@@ -342,7 +342,7 @@ Resources:
342342
# Mount EFS filesystem as /home
343343
- mkdir -p /tmp/home
344344
- rsync -a /home/ /tmp/home
345-
- sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport ${EfsFilesystem}.efs.${Region}.amazonaws.com:/ /home
345+
- echo "${EfsFilesystem}:/ /home efs tls,_netdev" >> /etc/fstab
346346
- mount -a -t efs defaults
347347
- if [ "enabled" == "$(sestatus | awk "/^SELinux status:/{print $3}")" ]; then setsebool -P use_nfs_home_dirs 1; fi
348348
- rsync -a --ignore-existing /tmp/home/ /home
@@ -392,7 +392,7 @@ Resources:
392392
# Mount EFS filesystem as /home
393393
- mkdir -p /tmp/home
394394
- rsync -a /home/ /tmp/home
395-
- sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport ${EfsFilesystem}.efs.${Region}.amazonaws.com:/ /home
395+
- echo "${EfsFilesystem}:/ /home efs tls,_netdev" >> /etc/fstab
396396
- mount -a -t efs defaults
397397
- if [ "enabled" == "$(sestatus | awk "/^SELinux status:/{print $3}")" ]; then setsebool -P use_nfs_home_dirs 1; fi
398398
- rsync -a --ignore-existing /tmp/home/ /home
@@ -667,13 +667,13 @@ Resources:
667667
Outputs:
668668
ClusterId:
669669
Description: The ID of the PCS cluster
670-
Value: !GetAtt [ PCSCluster, id ]
670+
Value: !GetAtt [ PCSCluster, Id ]
671671
PcsConsoleUrl:
672672
Description: URL to access the cluster in the PCS console
673673
Value: !Sub
674674
- https://${ConsoleDomain}/pcs/home?region=${AWS::Region}#/clusters/${ClusterId}
675675
- { ConsoleDomain: !Sub '${AWS::Region}.console.aws.amazon.com',
676-
ClusterId: !GetAtt [ PCSCluster, id ]
676+
ClusterId: !GetAtt [ PCSCluster, Id ]
677677
}
678678
Export:
679679
Name: !Sub ${AWS::StackName}-PcsConsoleUrl
@@ -682,7 +682,7 @@ Outputs:
682682
Value: !Sub
683683
- https://${ConsoleDomain}/ec2/home?region=${AWS::Region}#Instances:instanceState=running;tag:aws:pcs:compute-node-group-id=${NodeGroupLoginId}
684684
- { ConsoleDomain: !Sub '${AWS::Region}.console.aws.amazon.com',
685-
NodeGroupLoginId: !GetAtt [ PCSNodeGroupLogin, id ]
685+
NodeGroupLoginId: !GetAtt [ PCSNodeGroupLogin, Id ]
686686
}
687687
Export:
688688
Name: !Sub ${AWS::StackName}-Ec2ConsoleUrl

0 commit comments

Comments
 (0)