Closed DaveParr closed 5 years ago
Hi @DaveParr, in agreement with #7, only .R is accepted as a valid file extension. The runtime should be the same in any region. In the first versions of this project, .r was a valid extension. Can you please check which version you used with .r?
I followed the blog here: https://medium.com/bakdata/running-r-on-aws-lambda-9d40643551a6 Specifically using the R layer with the arn: arn:aws:lambda:eu-central-1:131329294410:layer:r-runtime:10
Hi @DaveParr, the version in the blog post is very old and indeed was only able to handle .r extensions. I will add support for .r as a fallback extension and also consider updating the blog post. Thanks for the feedback!
IMHO, just updating the blog post with a statement saying '.r is old, .R is new and will continue to be used instead' would be sufficient, and maybe adding a 'Changelog' section to the Read.me. From #7 it's obvious that a consistent (and correct) decision has been made. It's just a little hidden and obviously tripped me up in the transition between example and practice.
Thanks again for all the ground-work. Invaluable. 👍
Hi @DaveParr, from now on, both .r and .R are supported. I think that should be the best solution. I will start maintaining a changelog in the future to avoid confusion :)
Thanks for the ground work. This is really exciting.
In working through the examples I believe I've found an 'undocumented inconsitency':
I can run the listed examples perfectly.
I then attempted to 'translate' your shell scripts to support region
eu-west-2
Which returns
arn:aws:lambda:eu-west-2:131329294410:layer:r-runtime-3_6_0:4
This returned 200, and function is created in
eu-west-2
, crucially I have used the identicalscript.r
(lower case)return:
Checking in the web console I see this in cloud watch:
I open the lambda in console, and manually rename the
script.r
(lower) toscript.R
(upper)I reinvoke as step 2 with success
Is this an accidental side effect from the differing
r-runtime
layers? How can I workout which needs what? should there be a uniform treatment?Thanks again for the work 😄