splunk / splunk-aws-project-trumpet

MIT License
95 stars 31 forks source link

Deprecated runtime parameters in CloudFormation templates #42

Open HTTP500 opened 2 years ago

HTTP500 commented 2 years ago

Per https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html python2.7 and nodejs6.10 runtime supports already reached EOL and no longer receive security updates & updates

https://github.com/splunk/splunk-aws-project-trumpet/blob/master/splunk-aws-automation/trumpet_full.json and https://github.com/splunk/splunk-aws-project-trumpet/blob/master/splunk-aws-automation/trumpet_full_v0.2.json are still using them.

Since AWS blocks deploying lambdas using EOL'ed runtimes, the template cannot be deployed anymore

HTTP500 commented 2 years ago

Hi, @anushjay Wondering if you could take a look at this as you mentioned Python 3.7 compatibility at https://github.com/splunk/splunk-aws-project-trumpet/issues/35

Also drafted a PR at https://github.com/splunk/splunk-aws-project-trumpet/pull/43 .

mwisniewski9 commented 2 years ago

https://aws.amazon.com/blogs/compute/announcing-end-of-support-for-python-2-7-in-aws-lambda/ +1 if someone could take a look at this . When I try to deploy the template i get the following error ResourceLogicalId:CWEFirehoseProcessor, ResourceType:AWS::Lambda::Function, ResourceStatusReason:Resource handler returned message: "The runtime parameter of python2.7 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (python3.9) while creating or updating functions. (Service: Lambda, Status Code: 400, Request ID: e96c6573-9b40-4c2d-9fca-6fafd9f3334a, Extended Request ID: null)" (RequestToken: 954fcc4f-208f-683d-de02-db6dea7bcfa7, HandlerErrorCode: InvalidRequest).