mu
mu copied to clipboard
lambdaize.sh fails if executable has dot in name
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-]+))?`
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.