install dotnet 5 install aws toolkit install sam cli install docker
dotnet new -i Amazon.Lambda.Templates::* dotnet tool install --global Amazon.Lambda.Tools
dotnet new serverless.EmptyServerless -n DebuggingExample
cd DebuggingExample
dotnet new sln -n DebuggingExample
dotnet sln DebuggingExample.sln add //*.csproj
dotnet test
dotnet publish -c Release
sam local generate-event apigateway aws-proxy > testApiRequest.json
sam local invoke "DebuggingExampleFunction" --event testApiRequest.json --template serverless.template
sam local start-api --template serverless.template
aws s3api create-bucket --bucket csdias-debuggin-example-bucket --region eu—west-2
sam package --template-file serverless.template --output-template-file output-serverless.template --s3-bucket csdias-debugging-example-bucket --region eu-west-2
sam deploy --template-file output-serverless.template --stack-name csdias-debugging-template-stack --capabilities CAPABILITY_IAM --region eu-west-2 --s3-bucket csdias-debugging-example-bucket
dotnet lambda invoke-function DebuggingExample -–region eu-west-2
sam logs -n DebuggingExample --region eu-west-2