DataSyncを使用してEFSからS3へデータを転送する際に “Please verify that the subdirectory exists and is properly exported in /etc/exports” というエラーが発生する

DataSyncを使用してAmazon EFS ファイルシステムから Amazon S3 バケットにデータを転送する際に "Please verify that the subdirectory exists and is properly exported in /etc/exports" エラーが発生した場合の対処方法についてです。
2023.01.04

この記事は公開されてから1年以上経過しています。情報が古い可能性がありますので、ご注意ください。

困っていた内容

DataSyncを使用してAmazon EFS ファイルシステムから Amazon S3 バケットにデータを転送する際に以下エラーが発生し転送ができません。対処方法を教えてください。

Task failed to access location loc-xxxxxxxxxx: x40016: Could not mount subdirectory /mnt/efs/mypath on host 127.0.0.1. Please verify that the subdirectory exists and is properly exported in /etc/exports

どう対応すれば良いの?

設定されている マウントパス が原因の可能性が高いです。

フルパス ではなく、ファイルシステムのルートからの 相対パス を指定することでエラーが解消されるかお試しください。

(例)

フルパスを指定するのではなく、

相対パスを指定します。

参照情報

Serverless DataSync from EFS to S3