« Lambda » : différence entre les versions
De Banane Atomic
Aller à la navigationAller à la recherche
Aucun résumé des modifications |
|||
Ligne 15 : | Ligne 15 : | ||
On VS, if the extension {{boxx|AWS Toolkit}} is installed you have the {{boxx|AWS .NET Mock Lambda Test Tool}} available.<br> | On VS, if the extension {{boxx|AWS Toolkit}} is installed you have the {{boxx|AWS .NET Mock Lambda Test Tool}} available.<br> | ||
A debug configuration is created for you lambda. | A debug configuration is created for you lambda. | ||
<filebox fn='Properties\launchSettings.json'> | |||
{ | |||
"profiles": { | |||
"Mock Lambda Test Tool": { | |||
"commandName": "Executable", | |||
"commandLineArgs": "--port 5050", | |||
"executablePath": "<home-directory>\\.dotnet\\tools\\dotnet-lambda-test-tool-6.0.exe", | |||
"workingDirectory": ".\\bin\\Debug\\net6.0" | |||
} | |||
} | |||
} | |||
</filebox> |
Version du 1 mars 2024 à 16:18
.NET 8
scenario | description |
---|---|
Native AOT | |
Custom Runtime Function | to use .NET 8 |
Container Image | lambda function package as a container image |
Debug locally
On VS, if the extension AWS Toolkit is installed you have the AWS .NET Mock Lambda Test Tool available.
A debug configuration is created for you lambda.
Properties\launchSettings.json |
{ "profiles": { "Mock Lambda Test Tool": { "commandName": "Executable", "commandLineArgs": "--port 5050", "executablePath": "<home-directory>\\.dotnet\\tools\\dotnet-lambda-test-tool-6.0.exe", "workingDirectory": ".\\bin\\Debug\\net6.0" } } } |