You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not a problem, is a requirement. There has been some issues with this on having a NestJS application running properly in SAM.
We haven't been able to successfully deploy it on AWS but more people has faced this problem and seems that found a solution.
Description
Looks like the root problem comes from src/main.ts where bootstrapping is being made.
constapp=awaitNestFactory.create(AppModule);
I think SAM cannot trigger the lambda function using this method and have. An alternative is using createApplicationContext for Standalone applications.
In the other hand i don't see this being used in swagger-ui issue mentioned above.
I not sure about this but in our previous implementation i don't remember having a serverless.yaml nor lambda.ts files. Maybe was not committed (?).
Possible implementation
This is from previous implementation, is for illustrative reasons and is not meant to be working.
I will proceed to revert main branch to a working state.
I am attaching logs from CloudWatch where it seems to not being able to run the application. This can be related to our prior discussion of not using createApplicationContext and work as an stand alone app:
Overview
This is not a problem, is a requirement. There has been some issues with this on having a NestJS application running properly in SAM.
We haven't been able to successfully deploy it on AWS but more people has faced this problem and seems that found a solution.
Description
Looks like the root problem comes from
src/main.ts
where bootstrapping is being made.I think SAM cannot trigger the lambda function using this method and have. An alternative is using
createApplicationContext
for Standalone applications.In the other hand i don't see this being used in swagger-ui issue mentioned above.
I not sure about this but in our previous implementation i don't remember having a
serverless.yaml
norlambda.ts
files. Maybe was not committed (?).Possible implementation
Additional considerations
Beware of possible errors. Refer to Clubhouse ticket for more details.
This is indeed not working as expected and i shouldn't pushed it to
main
without testing it from it's own branch. 😿curl https://2sjy3m1ru6.execute-api.us-east-2.amazonaws.com/Prod/
I will proceed to revert
main
branch to a working state.createApplicationContext
and work as an stand alone app:More info here: https://docs.nestjs.com/standalone-applications
Logs
Download log files
[$LATEST]5d1efa5e3b8742ccabb934d356ed0aba:us-east-2
TL;DR for logs:
The text was updated successfully, but these errors were encountered: