#fanaticus #efs #aws #awscli #devops #server #filesystem #awsexpert #clouds #cloudcomputing
How to do creation, mounting & settings of Amazon EFS file system.
Where you can find us.🚀 In this step-by-step tutorial, learn how to set up an Amazon Elastic File System (EFS) from scratch! 🚀
📋 *Video Outline:*
00:00 - Introduction
Understand the importance of Amazon EFS and its use cases.
01:20 - Creating an EFS File System
Walkthrough the AWS Management Console to create your EFS file system.
Choose your preferred settings, including VPC, Availability Zones, and Performance mode.
Optional: Configure Access Points for controlled access.
04:45 - Mounting EFS to EC2 Instances
Access your EC2 instances on the AWS Console.
Learn how to mount the EFS file system to your EC2 instances.
Install the necessary NFS client and create the mount point.
08:15 - Testing the Mount
Verify the successful mount by creating a test file on your EC2 instance.
Check if the file appears in the EFS console.
10:00 - Additional Settings
Explore security group adjustments for your EFS.
Set up CloudWatch alarms for monitoring performance.
12:30 - Conclusion
Summarize the key steps covered in the tutorial.
📌 *Commands Used:*
#!/bin/bash
cd ~
echo "Cloning efs-utils package from github"
git clone https://github.com/aws/efs-utils
cd efs-utils
echo "Building efs dependencies before installing deb package"
./build-deb.sh
echo "Installing efs-utils deb package”
sudo apt-get install -y ./build/amazon-efs-utils*deb
echo "Installing packages for upgrading stunnel to version 5.62”
sudo apt-get install -y libssl-dev libwrap0-dev
echo "Downloading stunnel 5.71"
cd ~
sudo wget https://www.stunnel.org/downloads/stu...
sudo tar xvfz stunnel-5.71.tar.gz
cd stunnel-5.71
sudo ./configure
sudo make
sudo make install
sudo rm /bin/stunnel
sudo ln -s /usr/local/bin/stunnel /bin/stunnel
echo "Done installing prerequisite packages for AWS EFS”
echo "Creating /var/www/demoapp/uploads directory to mount EFS"
sudo mkdir -p /var/www/demoapp/uploads
sudo chown -R www-data:www-data /var/www/demoapp/uploads
sudo chmod 775 /var/www/demoapp/uploads
sudo mount -t efs -o tls fs-64645hgdgsf:/ /var/www/demoapp/uploads
echo "fs-64645hgdgsf:/ /var/www/demoapp/uploads efs tls,_netdev,owner 0 0" | sudo tee -a /etc/fstab
Instagram: / kr_ramkrishna
Twitter: / dk_ramkrishna
Facebook: / fanaticus
LinkedIn: / youtubefanaticus
Tumblr: / fanaticusofficials
Reddit: / fanaticusofficials
Telegram : https://t.me/fanaticusofficial