`mount -t efs` hangs, then fails with `mount.nfs4: Connection timed out`.
BeginnerTroubleshootingS3, EBS and EFS
Answer
Likely causes → The mount target's SG does not allow NFS (TCP 2049) from the client, there is no mount target in the client's AZ, or DNS resolution of the file system name is off in the VPC.
Diagnose →
aws efs describe-mount-targets --file-system-id fs-0abc --query 'MountTargets[].[AvailabilityZoneName,IpAddress,LifeCycleState]'
aws efs describe-mount-target-security-groups --mount-target-id fsmt-0abc
nc -zv fs-0abc.efs.us-east-1.amazonaws.com 2049
Fix →
- Allow TCP 2049 from the client SG on the mount target SG
- Create a mount target in every AZ where clients run
- Turn on
enableDnsSupportandenableDnsHostnameson the VPC
Prevent → Create mount targets for every AZ in IaC, and use amazon-efs-utils with _netdev,tls in fstab.
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