During a build that expected to publish a Lambda function, the publish step failed because:
Missing required parameter --function-memory-size
Having said that, that issue was likely caused by the lambda function being pushed to a new function named {projectName}.{projectVersion}-test instead of the expected {projectName}-test.
What is Expected?
Lambda function is successfully pushed.
Given that we probably expect to be able to create a new function with this, but don't want to hardcode it for all functions, we probably need a method that can be set (or ignored), but I'm unsure how that would best be implemented.
How Did You Get This To Happen? (Steps to Reproduce)
Build a tagged build of a lambda function (e.g. PackageDiffer) with CCR 0.17.0, and all AWS env vars in place
Output Log
[14:36:48 ] ========================================
[14:36:48 ] Publish-AWS-Lambdas
[14:36:48 ] ========================================
[14:36:48 ] Tool amazon.lambda.tools is already installed, with required version.
[14:36:54 ] Deploying Lambda package from zip file: C:/buildAgent/work/6a1b6ae87bea482e/code_drop/temp/_PublishedLambdas/PackageDiffer/PackageDiffer.0.1.0.zip
[14:36:54 ] Amazon Lambda Tools for .NET Core applications (5.4.5)
[14:36:54 ] Project Home: https://github.com/aws/aws-extensions-for-dotnet-cli, https://github.com/aws/aws-lambda-dotnet
[14:36:54 ]
[14:36:54 ] Skipping compilation and using precompiled package C:/buildAgent/work/6a1b6ae87bea482e/code_drop/temp/_PublishedLambdas/PackageDiffer/PackageDiffer.0.1.0.zip
[14:36:54 ] Creating new Lambda function packagediffer.0.1.0-test
[14:36:54 ] Missing required parameter: --function-memory-size
What You Are Seeing?
During a build that expected to publish a Lambda function, the publish step failed because:
Having said that, that issue was likely caused by the lambda function being pushed to a new function named
{projectName}.{projectVersion}-test
instead of the expected{projectName}-test
.What is Expected?
Lambda function is successfully pushed.
Given that we probably expect to be able to create a new function with this, but don't want to hardcode it for all functions, we probably need a method that can be set (or ignored), but I'm unsure how that would best be implemented.
How Did You Get This To Happen? (Steps to Reproduce)
Output Log