Skip to content

Commit

Permalink
LAWS-3486: added fstab entry for efs and mount all
Browse files Browse the repository at this point in the history
  • Loading branch information
tmahmood72 committed Oct 5, 2023
1 parent fc42fc7 commit 90aac79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion terraform/environments/apex/ec2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ cd /tmp
yum install -y https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm
sudo systemctl start amazon-ssm-agent
sudo systemctl enable amazon-ssm-agent
mount -t nfs4 -o rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport fs-04977da5fb1325b4b.efs.eu-west-2.amazonaws.com:/ /backups
echo "fs-04977da5fb1325b4b.efs.eu-west-2.amazonaws.com:/ /backups nfs4 rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport" >> /etc/fstab
mount -a
EOF
}

Expand Down

0 comments on commit 90aac79

Please sign in to comment.