Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/abuPublic

Merge API entity into one package #100

Open
Assignees
ianpogi5
Labels
enhancementNew feature or request
Milestone
@ianpogi5

Description

@ianpogi5

Motivation: As of writing, abu-api- will consume 199 resources. Since the limit is 200, the user cannot create more API endpoints.

Proposed Solution: Merge API entity into one lambda function.

A new filesrc/index.js will be the one to route to the individual functions.

function.yml

admin-access:handler:src/index.handlerevents:    -http:path:/method:postauthorizer:type:COGNITO_USER_POOLSauthorizerId:Ref:ApiGatewayAuthorizercors:true    -http:path:/{id}method:getauthorizer:type:COGNITO_USER_POOLSauthorizerId:Ref:ApiGatewayAuthorizercors:true    -http:path:/method:getauthorizer:type:COGNITO_USER_POOLSauthorizerId:Ref:ApiGatewayAuthorizercors:true    -http:path:/{id}method:putauthorizer:type:COGNITO_USER_POOLSauthorizerId:Ref:ApiGatewayAuthorizercors:true    -http:path:/{id}method:patchauthorizer:type:COGNITO_USER_POOLSauthorizerId:Ref:ApiGatewayAuthorizercors:true    -http:path:/{id}method:deleteauthorizer:type:COGNITO_USER_POOLSauthorizerId:Ref:ApiGatewayAuthorizercors:true

Pros:

  • Use only 1 lambda instead of multiple thus reducing the resources.
  • Because we'll be using one lambda for list and CRUD, the lambda maybe kept warm while user is using the endpoint.

Cons:

  • Code is bigger because all operations are inside.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp