Update Publish-AWSPowerShellLambda
to set function runtime if it does not match the built csproj
#1267
Closed
1 of 2 tasks
Labels
feature-request
A feature should be added or improved.
module/lambda-client-lib
p1
This is a high priority issue
queued
Describe the feature
Publish-AWSPowerShellLambda
would be a better experience if it would automatically upgrade the function config to match the correct dotnet runtime prior to uploading function code. There is no parameter to specify this, so you need to trigger it via some other mechanism.Use Case
When publishing a function via
Publish-AWSPowerShellLambda
, if the current function config does not match what was built the deployment will fail.Proposed Solution
The csproj target framework is specified in blueprints: https://github.com/aws/aws-lambda-dotnet/blob/master/PowerShell/Module/Templates/Blueprints/projectfile.csproj.txt#L3
This should be used to call
dotnet lambda update-function-config
to set the runtime prior to updating function code.Other Information
No response
Acknowledgements
AWS .NET SDK and/or Package version used
AWSLambdaPSCore 3.0.1.0
Targeted .NET Platform
.NET 6
Operating System and version
Windows 10
The text was updated successfully, but these errors were encountered: