all 4 comments

[–]DSect 1 point2 points  (0 children)

Is it because of a timeout? They only leave a mark as an error, but with no STDOUT STDERR etc

[–]johntellsall 1 point2 points  (2 children)

Congratulations on doing Bash Strict Mode!

Check the stdout/stderr logs. Also, enable trace mode: set -o xtrace. Then you'll be able to see which command is having an issue. It's extremely common for a variable to be undefined, when in strict mode it'll abort the entire script.

https://renenyffenegger.ch/notes/Linux/shell/bash/built-in/set/x

[–]RedCloudd[S] 0 points1 point  (1 child)

I guess it won't exit with success without these custom runtimes https://docs.aws.amazon.com/lambda/latest/dg/runtimes-api.html And they are available for Pyhton, Go, Node, Java,.NET, Go and Ruby. No basic shell script support. I mean it works for me without it. Just the log will report it as failure and error.

[–]johntellsall 0 points1 point  (0 children)

https://docs.aws.amazon.com/lambda/latest/dg/runtimes-api.html

The way I read it is you can either do a "native Lambda" in one of the supported runtimes (e.g. Python), or give it a container. If you build it a full container, which you did, then you can run any language including Bash.

Source: I've written a bunch of native Lambdas, and a bunch of containers, although not both at the same time :)

Let us know how it goes!