Build custom AWS Lambda layer for Scikit-image

前端 未结 3 1244
时光说笑
时光说笑 2021-01-05 12:59

Outline: I need to use scikit-image inside some AWS lambda functions, so I\'m looking to build a custom AWS lambda layer containing sciki

3条回答
  •  时光说笑
    2021-01-05 13:39

    As of v0.50.0, the sam cli has direct support for building layers. You decorate your AWS::Serverless::LayerVersion resource with metadata about which runtime strategy to use.

    MyLayer:
     Type: AWS::Serverless::LayerVersion
     Properties:
       Description: Layer description
       ContentUri: 'my_layer/'
       CompatibleRuntimes:
        - python3.8
     Metadata:
       BuildMethod: python3.8
    

提交回复
热议问题