![]() In the inbound rules section, click on Add Rule,.Enter DMZ as the name, Security group for DMZ as the description.Click on Create security group on the top right.Search for Security Groups and click on Security Group under features.NFS SG - This SG is used to allow traffic from the members of the DMZ SG to the EFS drive over port 2049.DMZ SG - This SG is used to allow traffic from the internet to the EC2 instance, i.e.We need to create two security groups as follows: Using AWS CLI Mount Amazon EFS to EC2 Ubuntu Linux using AWS Console Step 1) Create the security groups.We will mount the EFS drive on EC2 using two methods: You can find the instructions on how to install AWS CLI here. You need an AWS Account and AWS CLI installed on your system. Create a basic HTML page that will display image Prerequisites.Download a image file onto the EFS drive.Mount the EFS drive on the EC2 webserver.Create an EC2 webserver with Apache installed.The two security groups DMZ SG (which contains the EC2 instance) and the NFS SG (which contains the EFS drive) are connected to allow traffic between them over port 2049 Project Lab Setup Objectives.The EFS drive could should ideally be kept in a separate subnet and security group.In the example above, a webserver is connected to internet using port 80 or 443 and kept in a publicly accessible subnet. The VM(s) that will mount the drive are typically in their own subnets and security groups.The below architecture diagram explains a typical use case of how EFS is used with EC2. ![]() Which means, you can attach/mount it to your Linux machine as a network drive and it starts with a capacity of almost 0 and can easily grow into Petabytes of storage. ![]() ![]() What is Amazon EFS?Īmazon Elastic File Storage (EFS) is a network mountable elastic shared drive. Also the fact that EFS is supposed to act like a Network File System (NFS) and that almost all Linux versions have an already available & extensively tested NFS Utilities.Įven though EFS mount helper is comparatively easier to use, NFS is still preferred by most enterprises because they want to use proven and throughly tested utilities especially if they impact important services. In short, amazon-efs-utils package is only available for Amazon Linux and other Linux versions require you to build it from scratch. The first question that you should be asking yourself is, why not use amazon-efs-utils to mount the EFS drive? Mount Amazon EFS to EC2 Ubuntu Linux using AWS CLI.Mount Amazon EFS to EC2 Ubuntu Linux using AWS Console. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |