From 1a4125e06ce0fb711ec62c0a254a86846b0c9dd3 Mon Sep 17 00:00:00 2001 From: Tom McLaughlin Date: Mon, 21 Oct 2024 20:21:24 -0400 Subject: [PATCH] rename some files... --- src/handlers/CreateEntity/{function.ts => index.ts} | 0 src/handlers/GetEntity/{function.ts => index.ts} | 0 template.yaml | 6 +++--- 3 files changed, 3 insertions(+), 3 deletions(-) rename src/handlers/CreateEntity/{function.ts => index.ts} (100%) rename src/handlers/GetEntity/{function.ts => index.ts} (100%) diff --git a/src/handlers/CreateEntity/function.ts b/src/handlers/CreateEntity/index.ts similarity index 100% rename from src/handlers/CreateEntity/function.ts rename to src/handlers/CreateEntity/index.ts diff --git a/src/handlers/GetEntity/function.ts b/src/handlers/GetEntity/index.ts similarity index 100% rename from src/handlers/GetEntity/function.ts rename to src/handlers/GetEntity/index.ts diff --git a/template.yaml b/template.yaml index 08aa30e..dfa26fb 100644 --- a/template.yaml +++ b/template.yaml @@ -70,7 +70,7 @@ Resources: Type: AWS::Serverless::Function Properties: CodeUri: ./dist/handlers/CreateEntity - Handler: function.handler + Handler: handler Policies: - DynamoDBCrudPolicy: TableName: !Ref DdbTable @@ -83,7 +83,7 @@ Resources: OutExtension: - .js=.cjs EntryPoints: - - function.js + - index.js CreateEntityFunctionInvokePermission: Type: AWS::Lambda::Permission @@ -110,7 +110,7 @@ Resources: OutExtension: - .js=.cjs EntryPoints: - - function.js + - index.js GetEntityFunctionInvokePermission: Type: AWS::Lambda::Permission