Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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