AWSメモ >

AWS Lambdaでデフォルトで利用できるライブラリ

以下、東京リージョンで確認

Python 3.6

確認用Lambda関数

def lambda_handler(event, context):
    print ( help('modules') )
    return 'Hello from Lambda'

結果

__future__ ast idlelib sched
_ast asynchat imaplib secrets
_asyncio asyncio imghdr select
_bisect asyncore imp selectors
_blake2 atexit importlib setuptools
_bootlocale audioop inspect shelve
_bz2 awslambda io shlex
_codecs base64 ipaddress shutil
_codecs_cn bdb itertools signal
_codecs_hk binascii jmespath site
_codecs_iso2022 binhex json six
_codecs_jp bisect keyword smtpd
_codecs_kr bootstrap lambda_function smtplib
_codecs_tw boto3 lib2to3 sndhdr
_collections botocore liblambdaio socket
_collections_abc builtins liblambdaipc socketserver
_compat_pickle bz2 liblambdalog spwd
_compression cProfile liblambdaruntime sqlite3
_crypt calendar linecache sre_compile
_csv cgi locale sre_constants
_ctypes cgitb logging sre_parse
_ctypes_test chunk lzma ssl
_datetime cmath macpath stat
_decimal cmd macurl2path statistics
_dummy_thread code mailbox string
_elementtree codecs mailcap stringprep
_functools codeop marshal struct
_hashlib collections math subprocess
_heapq colorsys mimetypes sunau
_imp compileall mmap symbol
_io concurrent modulefinder symtable
_json configparser multiprocessing sys
_locale contextlib netrc sysconfig
_lsprof copy nis syslog
_lzma copyreg nntplib tabnanny
_markupbase crypt ntpath tarfile
_md5 csv nturl2path telnetlib
_multibytecodec ctypes numbers tempfile
_multiprocessing curses opcode termios
_opcode datetime operator test
_operator dateutil optparse textwrap
_osx_support dbm os this
_pickle decimal ossaudiodev threading
_posixsubprocess difflib parser time
_pydecimal dis pathlib timeit
_pyio distutils pdb tkinter
_random doctest pickle token
_sha1 docutils pickletools tokenize
_sha256 dummy_threading pip trace
_sha3 easy_install pipes traceback
_sha512 email pkg_resources tracemalloc
_signal encodings pkgutil tty
_sitebuiltins ensurepip platform turtle
_socket enum plistlib turtledemo
_sre errno poplib types
_ssl faulthandler posix typing
_stat fcntl posixpath unicodedata
_string filecmp pprint unittest
_strptime fileinput profile urllib
_struct fnmatch pstats uu
_symtable formatter pty uuid
_sysconfigdata_m_linux_x86_64-linux-gnu fractions pwd venv
_testbuffer ftplib py_compile warnings
_testcapi functools pyclbr wave
_testimportmultiple gc pydoc weakref
_testmultiphase genericpath pydoc_data webbrowser
_thread getopt pyexpat wsgi
_threading_local getpass queue wsgiref
_tracemalloc gettext quopri xdrlib
_warnings glob random xml
_weakref grp re xmlrpc
_weakrefset gzip reprlib xxlimited
abc hashlib resource xxsubtype
aifc heapq rlcompleter zipapp
antigravity hmac runpy zipfile
argparse html runtime zipimport
array http s3transfer zlib

Nodejs 6.10

確認用Lambda関数

var fs = require('fs');

exports.handler = (event, context, callback) => {
    var moduleDir = process.env.LAMBDA_RUNTIME_DIR + "/node_modules";
    fs.readdir(moduleDir, function(err, files){
        if (err) {
            console.error("ERROR!");
        } else {
            console.log(files);
        }
    });
    callback(null, 'Hello from Lambda');
};

結果

aws-sdk
awslambda
base64-js
buffer
crypto-browserify
dynamodb-doc
events
ieee754
imagemagick
isarray
jmespath
lodash
punycode
querystring
sax
url
uuid
xml2js
xmlbuilder

トップ   差分 バックアップ リロード   一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2018-01-04 (木) 05:16:12 (1362d)