xxxというエラーはxxxすると直ります←大好き

# はじめに
皆様。エラーメッセージでググるのは好きでしょうか？私は大好きです:innocent:
見覚えのないエラーに直面したら毎回コピペでぐぐっています。そして割とよく解決してもらっています。
あまつさえ、自分の境遇そのものの記事を見つけた時は感動のあまり目頭が熱くなり、性善説を唱えたくなります。

少しでも恩返しをしたいので、僭越ながら私もエラーメッセージ軸の記事を書かせていただきます:bow_tone1:

もし共感した方や、この記事が役立った方がいたら:heart_eyes:LGTM:heart_eyes:をいただけたら嬉しいです。
~~会社のアドベントカレンダーなので褒めてもらえます~~

## ターゲット(エラーメッセージとググりがち文言)
*Nuxt.js Audio 読み込めない*
*"Module parse failed: Unexpected character"*
*[object%20Module]*
　└ **[:point_right: Nuxt.jsでAudio読み込みに失敗](#nuxtjsでaudio読み込みに失敗)**

*Amazon Transcribe*
*Custom Vocabularies 日本語*
*"The vocabulary that you’re trying to create contains invalid characters or incorrectly formatted terms. See the developer guide for more information."*
　└ **[:point_right: Amazon TranscribeのCustom Vocabularies登録が出来ない](#amazon-transcribeのcustom-vocabularies登録が出来ない)**

*AWS Lambda Python ライブラリー デフォルト*
*"name 'xxxxxxx' is not defined"*
　└ **[:point_right: LambdaのデフォルトPythonライブラリ](#lambdaのデフォルトpythonライブラリ)**

# Nuxt.jsでAudio読み込みに失敗

最終的に以下をnuxt.config.jsに入れることで解決しました。

```javascript:nuxt.config.js
  build: {
    loaders: {
      vue: {
        transformAssetUrls: {
          audio: 'src'
        }
      }
    },
    extend(config, ctx) {
      config.module.rules.push({
        test: /\.(ogg|mp3|wav|mpe?g)$/i,
        loader: 'file-loader',
        options: {
          name: '[path][name].[ext]',
          esModule: false // この行が必要かは環境次第だと思います
        },
      })
    }
  }
```

基本的には[公式マニュアル](https://nuxtjs.org/ja/docs/features/configuration/#webpack-%E3%82%92%E6%8B%A1%E5%BC%B5%E3%81%97%E3%81%A6%E3%82%AA%E3%83%BC%E3%83%87%E3%82%A3%E3%82%AA%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%92%E3%83%AD%E3%83%BC%E3%83%89%E3%81%99%E3%82%8B)にある通りの拡張となりますが、私がハマったのは以下行が追加で必要だった点です。
>          esModule: false // この行が必要かは環境次第

なかなか検索で同じ事象がHITせず・・・珍しく[githubのissue](https://github.com/vuejs/vue-loader/issues/1612#issuecomment-559366730)まで探して色々試す事になりました:disappointed_relieved:
解決できる理由等はリンク先で確認してください。

# Amazon TranscribeのCustom Vocabularies登録が出来ない

これに関しては[非常によくまとまっている記事](https://dev.classmethod.jp/articles/amazon-transcribe-japanese-custom-vocabulary/)があります。基本的にはリンク先を読み込むと問題なく登録できると思います。
読んだ上で更に私がハマったのは以下でした。

**小文字。対応していないのが地味にある。。。！**

まず、このCutstom Vocabulariesですが、失敗した箇所をあまり教えてくれません。
エラーメッセージの種類が少なく、ほとんどの場合は**「デベロッパーガイド読め」**的なメッセージが出ます。。。文字コードやファイル形式を疑ってしまい、問題特定が大変でした:skull:


*このエラー以外見たことない.jpg*
![error.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2321946/b34c4e4f-301b-1c60-3119-4c54c2fa1d41.png)


[アップロードするファイルの中に許される日本語文字](https://github.com/awsdocs/amazon-transcribe-developer-guide/blob/master/doc_source/ja-jp-character-set.txt)が決まっていて、それ以外の文字が一つでもあれば「デベロッパーガイド読め！」です。**発生個所(行数等)は教えてくれません**:sob::sob::sob:

上記リンクの許可日本語一覧をパーーっと流してみて下さい。
「あ ～ ん」+「ア ～ ン」+「常用漢字」かな。一通り大丈夫そうだなって印象受けませんか？私はそう理解しました:hugging:
**ダメです。**例えば以下小文字が無いので許されません。

[ぁ][ぃ][ぅ][ゎ].....
※試してませんが[ッ]もリストにない気がします

あまり使わない文字ではありますが、だからこそ、この機能で追加しようとする事もあると思います。。。
ハマった時は許されていない小文字を使っていないか、確認してみることをお勧めいたします。

#LambdaのデフォルトPythonライブラリ

LambdaでPythonを使う場合、まず必要な作業はライブラリ.zipの作成→レイヤーにアップロードだと思います。not definedに最初は苦しみました:confounded:
上記手順はそれこそググれば大量に出てくるので割愛します。

以外と出てこなかった(あっても古い)のは、**「じゃあ最初に用意されてる（追加しないで使える）ライブラリって何？」**でした。ここに残します。

<details><summary>2021/12/03 python3.9のインストール済みライブラリを開く</summary><div>

```python:default
ModuleInfo(module_finder=FileFinder('/var/task'), name='lambda_function', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/runtime'), name='awslambdaric', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/runtime'), name='bootstrap', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/runtime'), name='boto3', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/runtime'), name='botocore', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/runtime'), name='dateutil', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/runtime'), name='jmespath', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/runtime'), name='runtime_client', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/runtime'), name='s3transfer', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/runtime'), name='simplejson', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/runtime'), name='six', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/runtime'), name='urllib3', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='__future__', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='_aix_support', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='_bootlocale', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='_bootsubprocess', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='_collections_abc', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='_compat_pickle', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='_compression', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='_markupbase', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='_osx_support', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='_py_abc', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='_pydecimal', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='_pyio', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='_sitebuiltins', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='_strptime', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='_sysconfigdata__linux_x86_64-linux-gnu', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='_threading_local', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='_weakrefset', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='abc', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='aifc', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='antigravity', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='argparse', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='ast', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='asynchat', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='asyncio', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='asyncore', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='base64', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='bdb', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='binhex', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='bisect', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='bz2', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='cProfile', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='calendar', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='cgi', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='cgitb', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='chunk', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='cmd', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='code', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='codecs', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='codeop', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='collections', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='colorsys', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='compileall', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='concurrent', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='configparser', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='contextlib', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='contextvars', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='copy', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='copyreg', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='crypt', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='csv', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='ctypes', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='curses', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='dataclasses', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='datetime', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='dbm', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='decimal', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='difflib', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='dis', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='distutils', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='doctest', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='email', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='encodings', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='ensurepip', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='enum', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='filecmp', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='fileinput', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='fnmatch', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='formatter', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='fractions', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='ftplib', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='functools', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='genericpath', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='getopt', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='getpass', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='gettext', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='glob', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='graphlib', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='gzip', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='hashlib', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='heapq', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='hmac', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='html', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='http', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='idlelib', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='imaplib', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='imghdr', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='imp', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='importlib', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='inspect', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='io', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='ipaddress', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='json', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='keyword', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='lib2to3', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='linecache', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='locale', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='logging', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='lzma', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='mailbox', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='mailcap', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='mimetypes', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='modulefinder', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='multiprocessing', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='netrc', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='nntplib', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='ntpath', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='nturl2path', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='numbers', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='opcode', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='operator', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='optparse', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='os', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='pathlib', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='pdb', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='pickle', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='pickletools', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='pipes', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='pkgutil', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='platform', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='plistlib', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='poplib', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='posixpath', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='pprint', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='profile', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='pstats', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='pty', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='py_compile', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='pyclbr', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='pydoc', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='pydoc_data', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='queue', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='quopri', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='random', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='re', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='reprlib', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='rlcompleter', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='runpy', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='sched', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='secrets', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='selectors', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='shelve', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='shlex', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='shutil', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='signal', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='site', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='smtpd', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='smtplib', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='sndhdr', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='socket', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='socketserver', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='sqlite3', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='sre_compile', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='sre_constants', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='sre_parse', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='ssl', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='stat', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='statistics', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='string', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='stringprep', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='struct', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='subprocess', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='sunau', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='symbol', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='symtable', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='sysconfig', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='tabnanny', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='tarfile', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='telnetlib', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='tempfile', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='test', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='textwrap', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='this', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='threading', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='timeit', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='tkinter', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='token', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='tokenize', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='trace', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='traceback', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='tracemalloc', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='tty', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='turtle', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='turtledemo', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='types', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='typing', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='unittest', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='urllib', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='uu', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='uuid', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='venv', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='warnings', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='wave', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='weakref', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='webbrowser', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='wsgiref', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='xdrlib', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='xml', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='xmlrpc', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='zipapp', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='zipfile', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='zipimport', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9'), name='zoneinfo', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_asyncio', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_bisect', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_blake2', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_bz2', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_codecs_cn', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_codecs_hk', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_codecs_iso2022', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_codecs_jp', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_codecs_kr', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_codecs_tw', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_contextvars', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_crypt', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_csv', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_ctypes', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_ctypes_test', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_curses', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_curses_panel', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_datetime', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_dbm', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_decimal', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_elementtree', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_gdbm', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_hashlib', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_heapq', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_json', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_lsprof', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_lzma', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_md5', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_multibytecodec', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_multiprocessing', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_opcode', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_pickle', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_posixshmem', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_posixsubprocess', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_queue', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_random', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_sha1', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_sha256', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_sha3', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_sha512', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_socket', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_sqlite3', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_ssl', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_statistics', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_struct', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_testbuffer', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_testcapi', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_testimportmultiple', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_testinternalcapi', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_testmultiphase', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_xxsubinterpreters', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_xxtestfuzz', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='_zoneinfo', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='array', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='audioop', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='binascii', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='cmath', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='fcntl', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='grp', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='math', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='mmap', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='nis', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='ossaudiodev', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='parser', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='pyexpat', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='readline', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='resource', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='select', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='spwd', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='syslog', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='termios', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='unicodedata', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='xxlimited', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/lib-dynload'), name='zlib', ispkg=False)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/site-packages'), name='_distutils_hack', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/site-packages'), name='pip', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/site-packages'), name='pkg_resources', ispkg=True)
ModuleInfo(module_finder=FileFinder('/var/lang/lib/python3.9/site-packages'), name='setuptools', ispkg=True)
```

</div></details>

上記リストの通りです。レイヤーは五個しか設定できないので、出来るだけデフォルトで済ませたいですね。
ちなみにこのリストは以下をLambdaで実行して、S3に吐き出したファイルを簡単に整形したものです。

```python:lambda

import json
import boto3
import datetime
import pkgutil

def lambda_handler(event, context):
    modules = []
    for m in pkgutil.iter_modules():
        modules.append(m);

    s3 = boto3.resource('s3')
    bucket = 'XXXXXXXXXXXXXXXXXXX' //自分のバケットを入れてください
    key = 'test_' + datetime.datetime.now().strftime('%Y-%m-%d-%H-%M-%S') + '.txt'
    file_contents =  '#'.join(map(str,modules)) 
    obj = s3.Object(bucket,key)
    obj.put( Body=file_contents ) //権限等は割愛しますがLambdaの実行ロールとS3のバケットポリシーは多分設定が必要です

    return {
        'statusCode': 200,
        'body': json.dumps('Hello from Lambda!')
    }
```

以上です。

# 最後に

ここまで読んでいただきありがとうございます!!!:bow_tone1::bow_tone1: