Created
September 14, 2023 17:27
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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