-
Notifications
You must be signed in to change notification settings - Fork 3
AWS Lambda Programming
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: 1) 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: a. true 2) 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. 3) 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. 4) The Project needs a lot of specific settings: a. Output type of "Console Application" b. Target framework of ".Net 8.0" c. Assembly name of "bootstrap" 5) I think some of the settings in the aws-lambda-tools-defaults.json file