AWS
DevOps
  • knowledge
    • glossary
    • network knowledge
      • CIDR Block
      • OSI
      • List of Ports
      • Network model
    • AWS best practices
      • Least privilege principle
      • Support Plan
      • Well-architected framework
        • Well-architected framework
        • Cost optimization
        • Operational Excellence
        • Performance efficiency
        • Reliability
        • Security
    • Exams
      • DOP-C02
        • DOP-C02 topics
        • DOP-C02 Labs
      • DVA-C02
      • SOA-C02
  • services
    • access management
      • Directory Service
      • IAM
        • PassRole
      • IAM Identity Center (SSO)
      • Organizations
        • Organizational Unit
        • Control Tower
      • AD Domain Service
    • analytics
      • data analytic
        • Athena
        • QuickSight
        • Redshift
      • data collection
        • Data Lake
        • Lake Formation
      • data processing
        • EMR
        • Kinesis
        • Glue
          • Glue Data Catalog
      • OpenSearch
    • compute
      • Batch
      • EC2
        • Auto Scaling
        • AMI
        • ELB
          • Global accelerator
        • Security Group
        • EBS
        • EC2 Instance Store
        • Spot Fleet
      • Elastic Beanstalk
      • Lambda
        • Layer
        • Lambda API
      • Outposts
      • Wavelength
      • SAM
      • VMWare Cloud
    • container
      • Copilot
      • ECR
      • ECS
        • ECS Anywhere
      • EKS
        • EKS Anywhere
        • EKS Distro
      • Fargate
    • cost management
      • Budgets
      • Cost Explorer
      • Saving Plans
      • Compute Optimizer
    • database
      • Data Engineer
      • Document DB
      • DynamoDB
        • DynamoDB API
        • Scan
      • ElastiCache
      • Keyspaces
      • MemoryDB for Redis
      • Neptune
      • Quantum Ledger Database
      • RDS
        • Aurora
          • Aurora Global Database
          • Aurora Serverless
      • Timestream
    • devTools
      • CICD
        • CodeArtifact
        • CodeCommit
        • CodeBuild
        • CodeDeploy
        • CodePipeline
      • CloudFormation
      • CodeGuru
      • CodeStar
      • CodeWhisperer
      • X-Ray
      • Deployment strategies
    • finance
      • Cost explorer
    • integration
      • AppFlow
      • AppSync
      • EventBridge
      • MQ
      • SNS
      • SQS
      • Step Functions
      • SWF
    • management
      • AppConfig
      • AWS Backup
      • AWS CDK
      • Config
      • Grafana
      • Health Dashboard
      • Proton
      • Service Catalog
      • System Manager
      • SSM
      • Resource Group
      • OpsWorks (discontinued)
    • media
      • Elemental MediaConvert
      • Transcoder
    • messaging
      • SES
    • migration
      • Application Migration Service
      • DataSync
      • DMS
      • Migration Evaluator
      • Migration Hub
      • Server Migration Service
      • Snow Family
      • Transfer Family
    • ML
      • Comprehend
      • Forecast
      • Kendra
      • Lex
      • Rekognition
      • SageMaker
        • SageMaker Data Wrangler
        • SageMaker ML Lineage Tracking
    • monitoring
      • CloudTrail
      • CloudWatch
      • TrustedAdvisor
    • networking
      • CloudFront
      • Customer gateway
      • Edge Location
      • hybrid networking
        • Direct Connect
          • Direct Connect Gateway
        • Site-to-site VPN
      • PrivateLink
      • Region
        • AZ
      • Route 53
      • Transit Gateway
      • VPC
        • VPC Lattice
        • Subnet
          • NACL
        • Internet Gateway
        • Network Firewall
        • VPN
        • NAT Gateway
      • Virtual Private Gateway
    • security
      • Artifact
      • ACM
      • CloudHSM
      • Cognito
      • Detective
      • Firewall Manager
      • GuardDuty
      • Inspector
      • KMS
      • Macie
      • Network Firewall
      • Resource Access Manager
      • Security Hub
      • Secret Manager
      • Secret Hub
      • Shield
      • STS
      • Trusted Advisor
      • WAF
    • storage
      • Backup
      • EBS
      • EFS
      • FSx
      • S3
        • S3 Glacier
        • S3 Snippet
        • S3 Mountpoint
      • Snow family
      • Storage gateway
      • WorkDocs
    • web & mobile
      • Amplify
      • API Gateway
      • Device Farm
      • Pinpoint
Powered by GitBook
On this page
  • Overview
  • Benefits
  • Features
  • EFS Mount point
  • Application specific directory & permission
  • Storage classes
  • Performance modes
  • Throughput modes
  • Containers and serverless file storage
  • Security
  • Encryption
  • Trivia
  1. services
  2. storage

EFS

Elastic File Storage: fully managed file system

PreviousEBSNextFSx

Last updated 1 year ago

|

Overview

Benefits

  • Scalability: automatically grows and shrinks as we add and remove files.

    • Can support over 10GB/sec, >500,000 IOPS

  • Reliability:

    • SLA ~ 11 9s durability. Just the same amount of 9s like S3.

    • Every EFS object is redundantly stored across multiple AZ.

    • Quickly detecting and repairing any lost redundancy.

  • Integration well with thousands of EC2 instances. EC2 instances can use EFS for parallel shared access.

  • Access data across AZs

Features

EFS Mount point

A mount point in AWS Elastic File System (EFS) connects the EFS file system to EC2 instances or on-premises servers, allowing file system interaction. It uses the NFSv4 protocol for secure and seamless file operations.

Key Steps:

  1. Create Mount Target: Set up a mount target in each Availability Zone where EC2 instances need EFS access.

  2. Security Groups: Assign security groups to mount targets to control access, allowing NFS connections from EC2 instances.

  3. Mounting: Use the mount command with the EFS DNS name on EC2 instances. For persistent access, add the mount command to the /etc/fstab file.

  4. Performance: Consider mount options and network performance between EC2 instances and EFS mount targets to optimize file operations.

Correctly configured mount points enable the use of EFS’s scalable and durable shared file storage.

  • Provide a serverless, set-and-forget elastic NFSv4 (Network File System) File System service.

    • Traditional hierarchial directory structure

    • Trandional file permissions

    • File locking

  • For cost down, consider using:

    • EFS-IA

    • EFS One Zone-IA

Application specific directory & permission

  • Using EFS access points for restrict access to File system, or specific directory.

  • Using AWS IAM policy to ensure specific app only access specific EFS Access Point.

Storage classes

There are 4 storage classes in EFS

  1. Standard storage class: for frequently accessed files.

  2. EFS IA (Infrequent Access) storage class

  3. EFS One Zone

  4. EFS One Zone-IA

  • Lower cost storage class.

  • Turn on EFS Lifecycle management to using this storage class.

    • When files have not been access for a period of time -> go to IA storage class

    • Using Lifecycle policy to define that period (1, 7, 14, 30, 60, 90 days). Maximum is 90 days.

Performance modes

General purpose
Max I/O

latency

Lowest

-

throughput

-

Higher

Throughput modes

Bursting
Provisioned

throughput

dynamically scale depend on Size

Higher dedicated throughput

config

can not

can be configured independently

Containers and serverless file storage

  • Serverless architecture do not have server (no EBS), so it needs a Shared storage service to handle IOPS-heavy workload or Latency-sensitive workload.

  • Allow container services like: ECS, EKS, Fargate, Lambda to handle stateful workloads.

Security

Encryption

  • Data at rest using encryption keys managed by KMS.

  • Data at transit using Transport Layer Security (TLS)

Trivia

    • FSx --> shared Windows file system(SMB)

    • EFS --> Linux NFS

Amazon EFS is NOT supported on Windows instances. Only for Linux (POSIX). Amazon is a specific service used for Windows File Server.

FSx
Life cycle management
using Direct Connect or VPN
EFS storage classes