-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add validation during build time for Handler max length #1778
Comments
Hi @matthewyost, Thanks for submitting the feature request. I will review it with the team. Regards, |
Also refer #1642 where the last character is stripped from the handler name. It's an open issue with the Lambda runtime team and they might plan to fix it in near future. So, currently, handler name of |
While I understand that there is a boundary concern here (still valid), the request is more for the DevX around finding this in the IDE before we execute it in CloudFormation. I spent a lot of time trying to determine exactly why this was happening only to figure out that it was being cause by the SourceGenerator inside the Annotations library. If we had the ability to have this lintable, that would be ideal. |
@matthewyost Thanks for your reply. I added #1778 (comment) just for reference. It would still be a good idea to add some validation. |
Hello! We have added a new validator that checks and imposes a character limit on the Lambda function handler. See PR #1812. This change was released in Amazon.Lambda.Annotations v1.5.1 |
Describe the feature
Include validation on the LambdaFunction attribute that notifies developer that the generated function handler is over the maximum character length (128) so that it can be fixed at build time.
Use Case
When using the Amazon.Lambda.Annotations you can hit the limit for max length of a FunctionHandler string in Cloudformation and only recognize this after attempting to deploy it
Proposed Solution
No response
Other Information
No response
Acknowledgements
AWS .NET SDK and/or Package version used
Amazon.Lambda.Annotations version 1.5.0.0
Targeted .NET Platform
.NET 6/8
Operating System and version
All
The text was updated successfully, but these errors were encountered: