google-auth(Custom aws Lambda Layer)
-- 2024.11.05
-- Cloud9 Amazon Linux2 で作業する
-- python のバージョンを確認する
$ python --version
Python 3.12.0
mkdir python
$ pip install google-auth -t python/
Collecting google-auth
Downloading google_auth-2.35.0-py2.py3-none-any.whl.metadata (4.7 kB)
Collecting cachetools<6.0,>=2.0.0 (from google-auth)
Downloading cachetools-5.5.0-py3-none-any.whl.metadata (5.3 kB)
Collecting pyasn1-modules>=0.2.1 (from google-auth)
Downloading pyasn1_modules-0.4.1-py3-none-any.whl.metadata (3.5 kB)
Collecting rsa<5,>=3.1.4 (from google-auth)
Downloading rsa-4.9-py3-none-any.whl.metadata (4.2 kB)
Collecting pyasn1<0.7.0,>=0.4.6 (from pyasn1-modules>=0.2.1->google-auth)
Downloading pyasn1-0.6.1-py3-none-any.whl.metadata (8.4 kB)
Downloading google_auth-2.35.0-py2.py3-none-any.whl (208 kB)
Downloading cachetools-5.5.0-py3-none-any.whl (9.5 kB)
Downloading pyasn1_modules-0.4.1-py3-none-any.whl (181 kB)
Downloading rsa-4.9-py3-none-any.whl (34 kB)
Downloading pyasn1-0.6.1-py3-none-any.whl (83 kB)
Installing collected packages: pyasn1, cachetools, rsa, pyasn1-modules, google-auth
Successfully installed cachetools-5.5.0 google-auth-2.35.0 pyasn1-0.6.1 pyasn1-modules-0.4.1 rsa-4.9
cd python
$ ls -ls
total 8
0 drwxrwxr-x 2 ec2-user ec2-user 128 Nov 5 08:08 bin
0 drwxrwxr-x 3 ec2-user ec2-user 74 Nov 5 08:08 cachetools
0 drwxrwxr-x 2 ec2-user ec2-user 102 Nov 5 08:08 cachetools-5.5.0.dist-info
0 drwxrwxr-x 4 ec2-user ec2-user 32 Nov 5 08:08 google
0 drwxrwxr-x 2 ec2-user ec2-user 119 Nov 5 08:08 google_auth-2.35.0.dist-info
0 drwxrwxr-x 6 ec2-user ec2-user 115 Nov 5 08:08 pyasn1
0 drwxrwxr-x 2 ec2-user ec2-user 122 Nov 5 08:08 pyasn1-0.6.1.dist-info
8 drwxrwxr-x 3 ec2-user ec2-user 4096 Nov 5 08:08 pyasn1_modules
0 drwxrwxr-x 2 ec2-user ec2-user 122 Nov 5 08:08 pyasn1_modules-0.4.1.dist-info
0 drwxrwxr-x 3 ec2-user ec2-user 272 Nov 5 08:08 rsa
0 drwxrwxr-x 2 ec2-user ec2-user 105 Nov 5 08:08 rsa-4.9.dist-info
$ cd ../
$ zip -r google-auth-layer.zip python
$ ls -ls
total 88328
1428 -rw-rw-r-- 1 ec2-user ec2-user 1461900 Nov 5 08:11 google-auth-layer.zip
0 drwxr-xr-x 13 ec2-user ec2-user 259 Nov 5 08:08 python