Created
September 8, 2021 09:51
-
-
Save velotiotech/57dfc810ad21fd2288a3260d8e8dd6a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider: | |
name: aws | |
runtime: nodejs12.x | |
lambdaHashingVersion: 20201221 | |
httpApi: | |
authorizers: | |
cognitoJWTAuth: | |
identitySource: $request.header.Authorization | |
issuerUrl: https://cognito-idp.{AWS_REGION}.amazonaws.com/{COGNITO_USER_POOL_ID} | |
audience: | |
- COGNITO_APP_CLIENT_ID | |
. | |
. | |
. | |
. | |
. | |
. | |
. | |
functions: | |
react-serve-ui: | |
handler: handler.uihome | |
memorySize: 256 | |
timeout: 29 | |
layers: | |
- {Ref: CommonLibsLambdaLayer} | |
events: | |
- httpApi: | |
path: /prep/photoupload | |
method: post | |
authorizer: | |
name: cognitoJWTAuth | |
- httpApi: | |
path: /list/photos | |
method: get | |
authorizer: | |
name: cognitoJWTAuth | |
- httpApi: | |
path: / | |
method: get |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment