-
-
Save hiroki1117/d3f352dcdca8348b00acd6c58a4a38e3 to your computer and use it in GitHub Desktop.
aws layer sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def hello(): | |
return "hello my layer" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# zipにする | |
zip layer.zip python/hello.py | |
# layer作成コマンド | |
aws lambda publish-layer-version \ | |
--layer-name hello \ | |
--zip-file fileb://layer.zip \ | |
--compatible-runtimes python3.8 | |
# layer削除 | |
aws lambda delete-layer-version --layer-name hello --version-number 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment