lambci / docker-lambda

Docker images and test runners that replicate the live AWS Lambda environment
MIT License
5.84k stars 431 forks source link

.NET handlers limited to 128 characters #332

Closed AdamLewisGMSL closed 3 years ago

AdamLewisGMSL commented 3 years ago

When specifying the handler using the Assembly::Namespace.ClassName::MethodName format as defined by Amazon, it's possible & quite easy to break the 128 character limit that lambci seems to be enforcing somewhere.

Have tried both passing in the value directly & setting it as a docker environment variable.

AdamLewisGMSL commented 3 years ago

Closing:

Handler
The name of the method within your code that Lambda calls to execute your function. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Programming Model.

Required: No

Type: String

Maximum: 128

Pattern: [^\s]+

Update requires: No interruption

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html