AWSTemplateFormatVersion: '2010-09-09' Transform: 'AWS::Serverless-2016-10-31' Description: An AWS Serverless Specification template describing your function. Resources: GameOver: Type: 'AWS::Serverless::Function' Properties: Handler: index.handler Runtime: nodejs12.x CodeUri: . Description: '' MemorySize: 128 Timeout: 3 Role: 'arn:aws:iam::574475665197:role/service-role/JoinMatch-role-74lcd8u9' Events: Api1: Type: Api Properties: Path: /MyResource Method: ANY