Skip to content

Commit

Permalink
combine 3rd party events into existing graphql endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
pearl-truss committed Jan 9, 2024
1 parent a6e04d6 commit 5178a7f
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions services/app-api/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,18 +197,6 @@ functions:
method: get
cors: true
authorizer: aws_iam
timeout: 60 # aurora cold start can be long
vpc:
securityGroupIds:
- ${self:custom.sgId}
subnetIds: ${self:custom.privateSubnets}
layers:
- !Ref PrismaClientEngineLambdaLayer
- arn:aws:lambda:us-east-1:901920570463:layer:aws-otel-nodejs-amd64-ver-1-18-1:1

graphql_external:
handler: src/handlers/apollo_gql.graphqlHandler
events:
- http:
path: v1/graphql/external
method: post
Expand All @@ -230,7 +218,8 @@ functions:
subnetIds: ${self:custom.privateSubnets}
layers:
- !Ref PrismaClientEngineLambdaLayer

- arn:aws:lambda:us-east-1:901920570463:layer:aws-otel-nodejs-amd64-ver-1-18-1:1

migrate:
handler: src/handlers/postgres_migrate.main
timeout: 60
Expand Down

0 comments on commit 5178a7f

Please sign in to comment.