AWSTemplateFormatVersion: '2010-09-09' Transform: AWS::Serverless-2016-10-31 Description: A simple SAM template for a Lambda function triggered by API Gateway Resources: HelloWorldFunction: Type: AWS::Serverless::Function Properties: Handler: index.handler Runtime: nodejs14.x CodeUri: . Events: HelloWorldApi: Type: Api Properties: Path: /hello Method: get