AWSTemplateFormatVersion: '2010-09-09' Transform: AWS::Serverless-2016-10-31 Description: > python3.8 Sample SAM Template for lambda-pytorch-inference Resources: pytorchEndpoint: Type: AWS::Serverless::Function Properties: PackageType: Image MemorySize: 512 Timeout: 120 Events: ApiEndpoint: Type: HttpApi Properties: Path: /inference Method: get TimeoutInMillis: 29000 Metadata: Dockerfile: Dockerfile DockerContext: ./ DockerTag: python3.8 Outputs: InferenceApi: Description: "API Gateway endpoint URL (stage) for inference function" Value: !Sub "https://${ServerlessHttpApi}.execute-api.${AWS::Region}.amazonaws.com/inference"