teluzia.Cloud Engineer · Day 59
CHAPTER 09 · STORAGE AND DATABASES

EFS and shared storage

4–5 hours including independent practice3 topics
LET’S MAKE THIS SIMPLE

What you’re learning today

Use shared file storage when several instances need filesystem semantics rather than object keys. EFS exposes an NFS filesystem through network mount targets. The hands-on path assumes two Linux sandbox instances you control and a reviewed storage/compute budget; otherwise produce the configuration and test plan without pretending a mount occurred. EFS supports shared filesystem access over NFS with POSIX-style behavior. Multiple clients can access the same data, but the application still needs correct concurrency, locking and consistency design. Compare shared file needs with EBS block storage and S3 object access before choosing a service. A shared mount is not a database transaction engine. EFS mount targets provide network access in selected AZs. Client routing, DNS and security groups must permit NFS traffic, normally TCP 2049. A resource policy and IAM authorization can add controls, while POSIX identity affects filesystem access. Use the supported EFS mount helper and encryption in transit where appropriate.

Think of it this way

EFS is one shared filing room accessible through several doors; EBS is a disk attached to a workstation, and S3 is an object warehouse.

TOPIC 01 / 03Step by step

Shared filesystem semantics

EFS supports shared filesystem access over NFS with POSIX-style behavior. Multiple clients can access the same data, but the application still needs correct concurrency, locking and consistency design. Compare shared file needs with EBS block storage and S3 object access before choosing a service. A shared mount is not a database transaction engine. Two clients mounting the same EFS filesystem can see a file written by one client; two independent EBS volumes named alike do not automatically share that content. Storage-interface choice prevents awkward application workarounds and makes access, concurrency and failure assumptions visible instead of treating block, object and shared-file systems as interchangeable containers for bytes. Using shared files without coordinating concurrent writes can corrupt application-level meaning; verify the application’s locking and update protocol rather than assuming a shared service automatically serializes all business operations safely.

WORKED EXAMPLE
Two clients mounting the same EFS filesystem can see a file written by one client; two independent EBS volumes named alike do not automatically share that content.
Why this matters

Storage-interface choice prevents awkward application workarounds and makes access, concurrency and failure assumptions visible instead of treating block, object and shared-file systems as interchangeable containers for bytes.

A common trap

Using shared files without coordinating concurrent writes can corrupt application-level meaning; verify the application’s locking and update protocol rather than assuming a shared service automatically serializes all business operations safely.

Read all topics in this lesson

A complete reference to revisit alongside the guided steps above.

Shared filesystem semantics

EFS supports shared filesystem access over NFS with POSIX-style behavior. Multiple clients can access the same data, but the application still needs correct concurrency, locking and consistency design. Compare shared file needs with EBS block storage and S3 object access before choosing a service. A shared mount is not a database transaction engine. Two clients mounting the same EFS filesystem can see a file written by one client; two independent EBS volumes named alike do not automatically share that content. Storage-interface choice prevents awkward application workarounds and makes access, concurrency and failure assumptions visible instead of treating block, object and shared-file systems as interchangeable containers for bytes. Using shared files without coordinating concurrent writes can corrupt application-level meaning; verify the application’s locking and update protocol rather than assuming a shared service automatically serializes all business operations safely.

WORKED EXAMPLE
Two clients mounting the same EFS filesystem can see a file written by one client; two independent EBS volumes named alike do not automatically share that content.

Why this matters

Storage-interface choice prevents awkward application workarounds and makes access, concurrency and failure assumptions visible instead of treating block, object and shared-file systems as interchangeable containers for bytes.

A common trap

Using shared files without coordinating concurrent writes can corrupt application-level meaning; verify the application’s locking and update protocol rather than assuming a shared service automatically serializes all business operations safely.

Mount targets and security

EFS mount targets provide network access in selected AZs. Client routing, DNS and security groups must permit NFS traffic, normally TCP 2049. A resource policy and IAM authorization can add controls, while POSIX identity affects filesystem access. Use the supported EFS mount helper and encryption in transit where appropriate. The mount-target group allows TCP 2049 from the client instance group; a failed mount can come from network denial even when the directory exists locally and the filesystem identifier is spelled correctly. Separating mount network access from file permissions gives a clear diagnosis path and limits exposure to the intended clients rather than every source in the VPC or public internet. Opening NFS to 0.0.0.0/0 is unnecessary and unsafe; use client-group scope and inspect mount-helper, endpoint, DNS and routing prerequisites before widening the network policy.

WORKED EXAMPLE
The mount-target group allows TCP 2049 from the client instance group; a failed mount can come from network denial even when the directory exists locally and the filesystem identifier is spelled correctly.

Why this matters

Separating mount network access from file permissions gives a clear diagnosis path and limits exposure to the intended clients rather than every source in the VPC or public internet.

A common trap

Opening NFS to 0.0.0.0/0 is unnecessary and unsafe; use client-group scope and inspect mount-helper, endpoint, DNS and routing prerequisites before widening the network policy.

Performance, access points and cost

EFS configuration choices affect performance, availability and cost. Regional and One Zone options have different resilience; lifecycle tiers and throughput modes need workload-aware review. Access points can present application-specific roots and identities. Shared storage still needs backup, retention and cleanup planning, especially for files written by test clients. An access point can constrain an application’s effective directory and POSIX identity, but the chosen mount command and authorization policy must actually use it rather than merely creating it in the console. Workload and identity configuration keeps a shared filesystem usable without granting every process unrestricted access, and cost modeling includes retained data and selected throughput behavior rather than only the client instance hours. Calling every EFS deployment multi-AZ ignores One Zone choices; record the actual storage class/design and test recovery expectations instead of relying on the service name alone for durability or failure-domain claims.

WORKED EXAMPLE
An access point can constrain an application’s effective directory and POSIX identity, but the chosen mount command and authorization policy must actually use it rather than merely creating it in the console.

Why this matters

Workload and identity configuration keeps a shared filesystem usable without granting every process unrestricted access, and cost modeling includes retained data and selected throughput behavior rather than only the client instance hours.

A common trap

Calling every EFS deployment multi-AZ ignores One Zone choices; record the actual storage class/design and test recovery expectations instead of relying on the service name alone for durability or failure-domain claims.

KEEP THESE WITH YOU

Today’s takeaways

Choose storage by interface semantics.

Scope NFS access to clients.

Plan identity, concurrency and retained cost.

CLOSE THE LOOP

Ready to complete this day?

Verify the practical steps and pass the knowledge check (at least two thirds correct).

Lab steps verifiedKnowledge check passed