1 Answer
- Newest
- Most votes
- Most comments
1
Hello.
I tried referencing the directory after EFS mounting using the code you created, and was able to successfully check the contents of the directory.
Therefore, it is possible that the directory where the "ls" command is executed and the directory mounted by Lambda do not match, or the access point is incorrect.
In the environment I tested, I installed only "Pillow" within EFS and confirmed its operation.
[INFO] 2024-08-25T02:58:35.563Z 11111111-1111-1111-1111-111111111111 Accessing EFS directory: /mnt/efs
[INFO] 2024-08-25T02:58:35.568Z 11111111-1111-1111-1111-111111111111 EFS directory contents: ['pillow-10.4.0.dist-info', 'PIL', 'pillow.libs']
[INFO] 2024-08-25T02:58:35.568Z 11111111-1111-1111-1111-111111111111 Found subdirectory: pillow-10.4.0.dist-info
[INFO] 2024-08-25T02:58:35.573Z 11111111-1111-1111-1111-111111111111 Subdirectory contents: ['top_level.txt', 'REQUESTED', 'INSTALLER', 'METADATA', 'WHEEL', 'LICENSE', 'RECORD', 'zip-safe']
[INFO] 2024-08-25T02:58:35.573Z 11111111-1111-1111-1111-111111111111 Found subdirectory: PIL
[INFO] 2024-08-25T02:58:35.585Z 11111111-1111-1111-1111-111111111111 Subdirectory contents: ['SpiderImagePlugin.py', 'PsdImagePlugin.py', 'ImageFilter.py', 'PcdImagePlugin.py', 'XbmImagePlugin.py', 'ImageMorph.py', 'FtexImagePlugin.py', 'PSDraw.py', '__main__.py', 'ImageDraw.py', 'BmpImagePlugin.py', 'ImageWin.py', 'DcxImagePlugin.py', 'GbrImagePlugin.py', 'ImageMath.py', 'FliImagePlugin.py', 'PcxImagePlugin.py', 'DdsImagePlugin.py', '_util.py', 'IcoImagePlugin.py', 'ImageOps.py', 'ImageEnhance.py', '_version.py', 'SgiImagePlugin.py', 'Jpeg2KImagePlugin.py', 'ContainerIO.py', 'QoiImagePlugin.py', 'PyAccess.py', 'ExifTags.py', 'MpegImagePlugin.py', 'MicImagePlugin.py', 'GimpGradientFile.py', 'TiffImagePlugin.py', 'Image.py', 'ImageFile.py', 'ImageDraw2.py', 'BdfFontFile.py', 'McIdasImagePlugin.py', '_imagingcms.cpython-39-x86_64-linux-gnu.so', 'ImageStat.py', 'IcnsImagePlugin.py', 'ImageGrab.py', 'TarIO.py', 'BufrStubImagePlugin.py', 'features.py', 'PpmImagePlugin.py', '_imagingtk.cpython-39-x86_64-linux-gnu.so', 'PaletteFile.py', 'ImageTransform.py', 'Hdf5StubImagePlugin.py', 'PngImagePlugin.py', 'WalImageFile.py', 'FontFile.py', 'XpmImagePlugin.py', '_tkinter_finder.py', '_imagingcms.pyi', 'PdfParser.py', '_imagingmath.cpython-39-x86_64-linux-gnu.so', '_imagingft.cpython-39-x86_64-linux-gnu.so', '_imagingmorph.pyi', 'EpsImagePlugin.py', 'ImageFont.py', '_typing.py', 'ImageColor.py', 'MspImagePlugin.py', 'IptcImagePlugin.py', '_webp.cpython-39-x86_64-linux-gnu.so', '__pycache__', 'ImageTk.py', 'ImagePalette.py', 'GdImageFile.py', 'MpoImagePlugin.py', '_imagingft.pyi', 'TgaImagePlugin.py', '_imagingmath.pyi', 'PixarImagePlugin.py', '_webp.pyi', '_imagingmorph.cpython-39-x86_64-linux-gnu.so', 'ImageCms.py', 'py.typed', 'ImtImagePlugin.py', 'JpegPresets.py', 'PdfImagePlugin.py', 'WmfImagePlugin.py', 'CurImagePlugin.py', 'GimpPaletteFile.py', '_deprecate.py', 'report.py', 'ImageSequence.py', 'PalmImagePlugin.py', 'GribStubImagePlugin.py', 'ImageShow.py', '_binary.py', '_imaging.pyi', 'XVThumbImagePlugin.py', 'WebPImagePlugin.py', 'ImageChops.py', '__init__.py', 'BlpImagePlugin.py', '_imaging.cpython-39-x86_64-linux-gnu.so', 'ImagePath.py', 'PcfFontFile.py', 'FpxImagePlugin.py', 'GifImagePlugin.py', 'ImageMode.py', 'ImImagePlugin.py', 'ImageQt.py', 'SunImagePlugin.py', 'FitsImagePlugin.py', 'TiffTags.py', 'JpegImagePlugin.py']
[INFO] 2024-08-25T02:58:35.585Z 11111111-1111-1111-1111-111111111111 Found subdirectory: pillow.libs
[INFO] 2024-08-25T02:58:35.602Z 11111111-1111-1111-1111-111111111111 Subdirectory contents: ['libpng16-58efbb84.so.16.43.0', 'liblzma-13fa198c.so.5.4.5', 'libbrotlidec-ba690955.so.1', 'libxcb-b8a56d01.so.1.1.0', 'libwebpmux-d524b4d5.so.3.1.0', 'liblcms2-e69eef39.so.2.0.16', 'libharfbuzz-89381d8f.so.0.60850.0', 'libbrotlicommon-3ecfe81c.so.1', 'libopenjp2-05423b53.so', 'libfreetype-be14bf51.so.6.20.1', 'libXau-154567c4.so.6.0.0', 'libjpeg-77ae51ab.so.62.4.0', 'libwebpdemux-f2642bcc.so.2.0.15', 'libwebp-2fd3cdca.so.7.1.9', 'libsharpyuv-898c0cb5.so.0.1.0', 'libtiff-0a86184d.so.6.0.2']
Relevant content
- asked 8 months ago
- asked 2 years ago

Hi Riku, I took a gamble and unzipped the dependencies again, this time the path is /mnt/efs/dependencies with PIL etc under there. Then I ran the code to check the contents from lambda and they appear. I don't know why they are now visible, maybe the order in which I did things to make the efs matters?