Skip to content

Instantly share code, notes, and snippets.

@hiroki1117
Last active January 23, 2022 06:55
Show Gist options
  • Save hiroki1117/d3f352dcdca8348b00acd6c58a4a38e3 to your computer and use it in GitHub Desktop.
Save hiroki1117/d3f352dcdca8348b00acd6c58a4a38e3 to your computer and use it in GitHub Desktop.
aws layer sample
def hello():
return "hello my layer"
# 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