Hi,
I’m working my way through aws via serverless deploy and would like to understand where to make changes to submit a PR for what it takes to get it working for me (if I can get it working
I got the api side to deploy with only a few minimal changes (of course, more will be needed to get it to function)
0. install serverless into the api: yarn workspace api add serverless
1. changes in the generated serverless.yml ​
a. (change graphql.ts to graphql in two places)
functions:
- graphql.ts:
functions:
+ graphql:
​
package:
- artifact: api/dist/zipball/graphql.ts.zip # This is the default location of the zip file generated during the deploy command.
package:
+ artifact: api/dist/zipball/graphql.zip # This is the default location of the zip file generated during the deploy command.
tags: # Tags for this specific lambda function
- endpoint: /.netlify/functions/graphql.ts
tags: # Tags for this specific lambda function
+ endpoint: /functions/graphql.ts
events:
- httpApi:
- path: /.netlify/functions/graphql.ts
method: GET
- httpApi:
- path: /.netlify/functions/graphql.ts
method: POST
events:
- httpApi:
+ path: /functions/graphql.ts
method: GET
- httpApi:
+ path: /functions/graphql.ts
method: POST
Things I need to do next
-
enable REDWOOD_SECURE_SERVICES
-
figure out how to build a web distribution zip file
-
add stanzas to the serverless.yml for the web app