Skip to content

Instantly share code, notes, and snippets.

@em-shea
Created November 3, 2023 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save em-shea/ef58b200754e01c1a2fa825fada77424 to your computer and use it in GitHub Desktop.
Save em-shea/ef58b200754e01c1a2fa825fada77424 to your computer and use it in GitHub Desktop.
SAM Lambda function example
Transform: AWS::Serverless-2016-10-31
Resources:
Function:
Type: AWS::Serverless::Function # This resource is a Lambda function
Properties:
CodeUri: src/Function # Location in your file structure where the function code is saved
Handler: index.handler # Your Lambda function handler, or the method in your function code that's called every time your function is invoked
Runtime: python3.11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment