mu icon indicating copy to clipboard operation
mu copied to clipboard

lambdaize.sh fails if executable has dot in name

Open gmporter opened this issue 8 years ago • 1 comments

It looks like the lambdaize.sh helper utility fails if the executable name has a 'dot' in it.

`$ MEM_SIZE=1536 TIMEOUT=180 ./src/lambdaize/lambdaize.sh gpb Function name: a.out_Qm2Ce8JN

A client error (ValidationException) occurred when calling the CreateFunction operation: 1 validation error detected: Value 'a.out_Qm2Ce8JN' at 'functionName' failed to satisfy constraint: Member must satisfy regular expression pattern: (arn:aws:lambda:)?([a-z]{2}-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-]+)(:($LATEST|[a-zA-Z0-9-]+))?`

gmporter avatar Oct 17 '16 17:10 gmporter

If this is an AWS limitation, it might be good for lambaize.sh to check if the given name matches the regex, and if not, print out a friendly message.

gmporter avatar Oct 17 '16 17:10 gmporter