Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save a-toms/809ad429072c1019ddafad4671f9ddff to your computer and use it in GitHub Desktop.
Save a-toms/809ad429072c1019ddafad4671f9ddff to your computer and use it in GitHub Desktop.
# Section 3: Add your serverless function - ## 3.2 Update your serverless function API
yaml
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
sam-app
Sample SAM Template for sam-app
Globals:
Function:
Timeout: 10
MemorySize: 128
Resources:
HelloWorldFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: hello_world/
Handler: app.lambda_handler
Runtime: python3.9
Architectures:
- x86_64
Events:
HelloWorld:
Type: Api
Properties:
Path: /hello
Method: post
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment