splunk / splunk-aws-serverless-apps

Splunk AWS Serverless applications and Lambda blueprints
MIT License
55 stars 61 forks source link

nodejs4.3 runtime no longer supported for new lambda functions in AWS #5

Open mlcooper opened 5 years ago

mlcooper commented 5 years ago

When creating a new Lambda function based off of one of your bluprints, your documentation specifies to leave the nodejs runtime at 4.3, as per this doc: http://dev.splunk.com/view/event-collector/SP-CAAAE6Y

However, AWS no longer supports creating new lambda functions (via the API via Terraform anyway) with runtime nodejs4.3. They recommend 8.10 for the runtime, however your blueprint throws an error with 8.10. It does however work with runtime nodejs6.10.

Error from AWS as seen in Terraform:

InvalidParameterValueException: The runtime parameter of nodejs4.3 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs8.10) while creating or updating functions.
pachecoalbert commented 5 years ago

I was able to get this working by updating all references to nodejs4 to nodejs8.10. Then I followed the instructions on the readme.