Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created September 8, 2021 09:51
Show Gist options
  • Save velotiotech/57dfc810ad21fd2288a3260d8e8dd6a5 to your computer and use it in GitHub Desktop.
Save velotiotech/57dfc810ad21fd2288a3260d8e8dd6a5 to your computer and use it in GitHub Desktop.
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