AWS CSA
  • Introduction
  • 1. AWS Overview
    • 1.1 AWS global Infrastructure
    • 1.2 Networking and Content Delivery
    • 1.3 Computing
    • 1.4 Storage
    • 1.5 Databases
    • 1.6 Migration Services
    • 1.7 Analytics
    • 1.8 Security and Identity
    • 1.9 Management Tools
    • 1.10 Application Services
    • 1.11 Developer Tools
    • 1.12 Mobile Services
    • 1.13 Desktop and App Streaming
    • 1.14 Artificial Intelligence
    • 1.15 Messaging
  • 2. IAM - Identity Access Management
    • 2.1 IAM Introduction
    • 2.2 IAM Labs
    • 2.3 Create a billing alart
    • 2.4 IAM Conclusion
  • 3. S3 - Simple Storage Service
    • 3.1 S3 Introduction
    • 3.2 S3 Labs
    • 3.3 Version Control Labs
    • 3.4 Cross Region Replication
    • 3.5 Life Cycle Management
    • 3.6 CloudFront
    • 3.7 CloudFront Labs
    • 3.8 S3 Security and Encryption
    • 3.9 Storage Gateway
    • 3.10 Snowball
    • 3.11 Snowball Labs
    • 3.12 S3 Transfer Acceleration
    • 3.13 Create a static web page using S3
    • 3.14 Storage Summary
  • 4. EC2 - Elastic Compute Cloud
    • 4.1 EC2 Introduction I
    • 4.2 EC2 Introduction II
    • 4.3 EC2 Lab 1
    • 4.4 EC2 Lab 2
    • 4.5 Security Groups Lab
    • 4.6 Upgrade EBS Volume Types - Lab1
    • 4.7 Upgrade EBS Volume Types - Lab2
    • 4.8 RAID, Volumes & Snapshots
    • 4.9 Create An AMI - Lab
    • 4.10 AMI's EBS Root Volumes vs. Instance Store
    • 4.11 Elastic Load Balancer & Health Check - Lab
    • 4.12 CloudWatch EC2 - Lab
    • 4.13 The AWS Command Line & EC2
    • 4.14 Using IAM Roles with EC2
    • 4.15 S3 CLI & Regions
    • 4.16 Using Bootstrap Scripts
    • 4.17 EC2 Instance Metadata
    • 4.18 Launch Configurations & Auto Scaling Groups
    • 4.19 EC2 Placement Groups - Exam Must Know
    • 4.20 Elastic File System (EFS) Lab
    • 4.21 Lambda Concepts
    • 4.22 Build A Serverless Webpage Using API Gateway & Lambda
    • 4.23 Use Polly to Pass Your Exam - Lab of a Serverless Application
    • 4.24 Use Polly to Pass Your Exam - Lab of a Serverless Application
    • 4.25 EC2 - Summary & Exam Tips
  • 5. Route53
    • 5.1 DNS 101
    • 5.2 Route53 - Register A Domain Name - Lab
    • 5.3 Setup Our EC2 Instances - Lab
    • 5.4 Routing Policies - Lab
  • 6. Databases on AWS
    • 6.1 Databases 101
    • 6.2 Launching an RDS Instance - Lab
    • 6.3 RDS - Backups, Multi-AZ & Read Replicas
    • 6.4 DynamoDB
    • 6.5 Redshift
    • 6.6 ElastiCache
    • 6.7 Aurora
    • 6.8 Database Summary
  • 7. VPC
    • 7.1 VPC Overview
    • 7.2 VPC Lab - Part 1
    • 7.3 VPC Lab - Part 2
    • 7.4 NAT Instances & NAT Gateways
    • 7.5 Network Access Control Lists vs. Security Groups
    • 7.6 Load Balancers & Custom VPCs
    • 7.7 VPC Flow Logs
    • 7.8 NATs vs. Bastions
    • 7.9 VPC End Points
    • 7.10 VPC Clean Up
    • 7.11 VPC Summary
  • 8. Application Services
    • 8.1 SQS - Simple Queue Service
    • 8.2 SWF - Simple Workflow Service
    • 8.3 SNS - Simple Notification Service
    • 8.4 Elastic Transcoder
    • 8.5 API Gateway
    • 8.6 Kinesis 101
    • 8.7 Kinesis Streams Lab
    • 8.8 Application Services Summary
  • 9. White Paper Reviews
    • 9.1 Overview of AWS
    • 9.2 Overview of Security Processes - Part 1
    • 9.3 Overview of Security Processes - Part 2
    • 9.4 Risk & Compliance Whitepaper
    • 9.5 Storage Options in the Cloud Whitepaper
    • 9.6 Architecting For The Cloud Best Practices Whitepaper
  • 10. Well Architected Framework
    • 10.1 Introduction of Well Architected Framework
    • 10.2 Pillar One - Security
    • 10.3 Pillar Two - Reliability
    • 10.4 Pillar Three - Performance
    • 10.5 Pillar Four - Cost Optimization
    • 10.6 Pillar Five - Operational Excellence
    • 10.7 Well Architected Framework - Summary
  • 11. Additional Exam Tips
    • 11.1 Exam Tips Based On Student Feedback
    • 11.2 Consolidated Billing
    • 11.3 AWS Organizations - Lab
    • 11.4 Cross Accounts Access
    • 11.5 Resource Groups & Tagging
    • 11.6 VPC Peering & ClassicLink
    • 11.7 Direct Connect
    • 11.8 Security Token Service
    • 11.9 Active Directory Integration
    • 11.10 Workspaces
    • 11.11 ECS - Part 1 - What is Docker
    • 11.12 ECS - Part 2 - What is ECS
    • 11.13 CloudFormation - A Brief Introduction
    • 11.14 Step Functions - A Brief Introduction
  • 12. Practice Tests Questions Summary
    • 12.1 Whizlabs - Free Test
    • 12.2 Whizlabs - Diagnosis Test
    • 12.3 Whizlabs - Practice Test I
    • 12.4 Whizlabs - Practice Test II
    • 12.5 Whizlabs - Practice Test III
    • 12.6 Whizlabs - Practice Test IV
    • 12.7 Whizlabs - Practice Test V
    • 12.8 Whizlabs - Practice Test VI
    • 12.9 Whizlabs - Practice Test VII
    • 12.10 Whizlabs - Section Tests - Part 1
    • 12.11 Whizlabs - Section Tests - Part 2
    • 12.12 Udemy - Final Quiz
  • 13. The Real World - Creating a fault tolerant Word Press Site
    • 13.1 Getting Setup
Powered by GitBook
On this page
  • EFS Introduction
  • EFS Features
  • Lab Steps
  • EFS in Exam

Was this helpful?

  1. 4. EC2 - Elastic Compute Cloud

4.20 Elastic File System (EFS) Lab

Previous4.19 EC2 Placement Groups - Exam Must KnowNext4.21 Lambda Concepts

Last updated 5 years ago

Was this helpful?

EFS Introduction

Amazon Elastic File System (Amazon EFS) is a file storage service for Amazon EC2 instances. It is a kind of file system. EFS is easy to use and provides a simple interface that allows you to create and configure file systems quickly and easily. With EFS, storage capacity is elastic, growing and shrinking automatically as you add and remove files, so your applications have the storage they need, when they need it.

Unlike EBS volumes, EFS allows you to attach one EFS to multiple EC2 instances.

EFS Features

  • Supports the Network File System version 4 (NFSv4) protocol.

  • You only pay for the storage you use (no pre-provisioning required). We just need to start EFS and put files on it and EFS will charge 30 cents per Gigabytes.

  • It can scale up to Petabytes.

  • It can support thousands of concurrent NFS connections.

  • Data is stored across multiple AZ's within a Region.

  • The durability is still not published yet.

  • Unlike S3, EFS is a block-based storage. We can put files on EFS and share these files with multiple EC2 instances.

  • Like S3, EFS has Read After Write Consistency.

Lab Steps

  • Go to Storage, you can find EFS which is right below S3.

  • Some Region doesn't support EFS for now, for example, EU Region.

  • Go to create an EFS:

    • Configure file system access. Firstly, you need to select the VPC. You can use the default VPC for this region. Secondly, you need to Create Mount Targets. You can select which AZs you want to have mount targets in. You can select all AZs. And then you need to choose subnets. You can just choose the default subnets for this VPC. And then you need to choose Security Group. You can just choose the default security group for this VPC.

    • Add tags. Add tags for your EFS, which will help you to distinguish them easily in the future.

    • Review and Create. You will see your EFS is in one VPC, but across all three AZs and in three different subnets corresponding the three AZs. The security groups for these three parts of EFS are same. The IP address for these three parts of EFS will be automatically allocated.

  • Create three EC2 instances and put them into different AZs of the Region where you created the EFS, so you need to select corresponding subnets of the three parts of the EFS when you configure your EC2 instances.

  • Go to create a ELB. Configure the ELB and add the EC2 instances you just created into this ELB.

  • Go to EC2 instances, Action -> Network -> Change Security Group, select the security groups where your EFS are also in.

  • Now, you have 3 EC2 instances and they are in three AZs (also 3 subnets) of this region, and they are behind your ELB, and they are in same security group with your EFS. Your EFS are across 3 AZs (also 3 subnets) of this region.

  • SSH into these three EC2 instances, and go to root user. Install and start Apache httpd server for all of them.

  • Go to EFS console, click your EFS and in the File system access, click EC2 mount instructions. You will find the commands which can help you to mount your EC2 instances to EFS. Copy and paste the commands to your EC2 command line, and change sth at the end of the command, because you want to mount to /var/www/html directory, instead of the root directory. For example, the command could be "sudo mount -t nfs4 $(curl -s /var/www/html"

  • Now, the /var/www/html directory of your EC2 instances has been mounted to your EFS.

  • Create healthcheck.html and index.html in this directory of one of the instances, and these files will be automatically shown in other two instances, because they are all mounted in a same EFS. So you only have one copy of the code/files, but they can also be served through other instances.

  • Now, you can see the index.html through the DNS name of your ELB in browser. Thus, with EFS, you don't need mulitple copies of your codes, you don't need to mess around with bash scripts that all put your code down from S3 to your provisioned EC2 instances. You can actually have your code in one centralized repository, and then you can have EC2 instances that auto-scaled and then mount that EFS mount point as the root directory for Apache httpd server, so this save you a lot of time.

EFS in Exam

You need to know the use cases of EFS. We essentially use it as a file server. You store your files there, you make a centralized repository cross your EC2 instances. You can have multiple EC2 instances connect to the same EFS volume, and all accessing same copy of files. You can also apply EFS user level permissions, directory level permissions and file level permissions, you can make directories restricted in EFS and that restriction would be universal across all EC2 instances. With these restrictions, only specific users can access the files or directories in your EFS. EFS allows mulitple EC2 instances to connect/mount with it, so this is the most importance difference of it with EBS.

http://169.254.169.254/latest/meta-data/placement/availability-zone).fs-79e40cd0.efs.us-west-2.amazonaws.com:/