Interview Prep/AWS/S3, EBS and EFS

`mount.nfs4: access denied by server while mounting fs-0abc.efs...`.

IntermediateTroubleshootingS3, EBS and EFS
Answer

Likely causes → An EFS file system policy requires IAM authorization or TLS, and the mount did not use -o tls,iam. Or the client role has no elasticfilesystem:ClientMount/ClientWrite. Or an access point's root directory or POSIX user does not match what is expected.

Diagnose →

aws efs describe-file-system-policy --file-system-id fs-0abc
aws efs describe-access-points --file-system-id fs-0abc

Fix →

  1. Mount with efs-utils: sudo mount -t efs -o tls,iam,accesspoint=fsap-0abc fs-0abc:/ /mnt/efs
  2. Grant the instance or task role elasticfilesystem:ClientMount and ClientWrite (plus ClientRootAccess if needed)

Prevent → Standardize on access points per app, with IAM auth and TLS required by policy.

aws All AWS questions Roadmap: AWS core services

More on S3, EBS and EFS