amazon-archives / aws-serverless-auth-reference-app

Serverless reference app and backend API, showcasing authentication and authorization patterns using Amazon Cognito, Amazon API Gateway, AWS Lambda, and AWS IAM.
Other
754 stars 193 forks source link

update filename in readme #15

Closed xke closed 7 years ago

justonian commented 7 years ago

Hi xke-

Thanks for taking an interest in this project and for your pull request. Though I admit the naming convention is probably not the most clear, in this case all of the core handlers for the Lambda functions are found in index.js, with a separate .js file for the code that the handler then uses specific to each type of resource. In this case "resources.js" is for the resource of type "resource" as in a conference room or office desk vs. of resource type "location" as in "locations.js."

We chose to use a single Lambda function zip file for all code with modular dependencies, but this is just a single example of how to build a serverless web app with API Gateway and Lambda, and is more focused on the various AuthN/AuthZ scenarios.

Please let us know if you have any questions or see other areas for improvement.

Thanks,

Justin