-
Notifications
You must be signed in to change notification settings - Fork 2
AWS Lambda Programming
RobKraft edited this page Dec 14, 2024
·
3 revisions
The REST endpoints are AWS Lambda Functions. GetCharityTypes is written in C#...
- I think I may have picked a poor template for building these Lambdas because it has been difficult to resolve the problems. These are the undocumented changes I needed to make:
- You need to manually edit the .csproj file of each project and add this to resolve a problem running the Lambda in AWS (I don't recall the exact error) This might be related to the Microsoft ICU reference I needed to include and maybe I can remove that Microsoft ICU now:
- true
- It seems we can't use the Mysql.data SDKs, especially after upgrading to .Net Core 8 from .Net Core 6, but the MySQLConnection SDK works.
- I had to add a custom serializer for each class and type that inherits JsonSerializerContext because of changes in Lambda support for reflection and serialization.
- The Project needs a lot of specific settings:
- Output type of "Console Application"
- Target framework of ".Net 8.0"
- Assembly name of "bootstrap"
- I think some of the settings in the aws-lambda-tools-defaults.json file
- You need to manually edit the .csproj file of each project and add this to resolve a problem running the Lambda in AWS (I don't recall the exact error) This might be related to the Microsoft ICU reference I needed to include and maybe I can remove that Microsoft ICU now: