`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 →
- Mount with efs-utils:
sudo mount -t efs -o tls,iam,accesspoint=fsap-0abc fs-0abc:/ /mnt/efs - Grant the instance or task role
elasticfilesystem:ClientMountandClientWrite(plusClientRootAccessif needed)
Prevent → Standardize on access points per app, with IAM auth and TLS required by policy.
More on S3, EBS and EFS
`BucketAlreadyExists: The requested bucket name is not available. The bucket namespace is shared by all users of the system.`Beginner`PermanentRedirect: The bucket you are attempting to access must be addressed using the specified endpoint.`BeginnerA partner account uploads objects into your bucket, but your own admins get `403 Forbidden` reading them.Intermediate`aws s3 cp` gets `An error occurred (AccessDenied) when calling the GetObject operation` but the IAM policy allows `s3:GetObject` and the bucket policy is fine.IntermediateAn S3 static website endpoint returns `403 Forbidden` with `Code: AccessDenied`.IntermediateHigh-throughput writes get `503 SlowDown: Please reduce your request rate.`Intermediate