Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Add template for Serverless Application Model (SAM) deployment #1

Open
yoavz opened this issue Jul 23, 2020 · 0 comments
Open

Add template for Serverless Application Model (SAM) deployment #1

yoavz opened this issue Jul 23, 2020 · 0 comments

Comments

@yoavz
Copy link
Contributor

yoavz commented Jul 23, 2020

Add support for deploying with https://aws.amazon.com/serverless/sam/. I believe all that is required is a template.yaml file that should look something like:

AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: ...
Resources:
  ScikitLearnFunction:
    Type: AWS::Serverless::Function
    Properties:
      Handler: scikit_learn_lambda.handler
      Runtime: python3.7
      MemorySize: 1024
      Environment:
        Variables:
          SKLEARN_MODEL_PATH: "model.joblib"
      Layers:
        - ...
      Events:
        HttpPost:
          Type: Api
          Properties:
            Path: '/predict'
            Method: post

Similar to the serverless.yaml template, this should have documentation on how to deploy a model that is packaged with the code and a how to deploy a model from S3, including the required IAM permissions for S3 reads.

yoavz added a commit that referenced this issue Jul 23, 2020
These were only partially done, filed #1 to create a polished template
with documentation for deploying to SAM.
yoavz added a commit that referenced this issue Jul 23, 2020
These were only partially done, filed #1 to create a polished template
with documentation for deploying to SAM.
@yoavz yoavz changed the title Add support for Serverless Application Model (SAM) Add template for Serverless Application Model (SAM) deployment Jul 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant