Is there a way to update the lambda function runtime that was created by the S3EventSource using CDK? Otherwise, CLI? Currently, we have it under Python 3.7 and that needs to be upgraded to Python 3.11.
有没有办法更新由S3EventSource使用CDK创建的lambda函数运行时?否则,CLI?目前,我们在Python3.7下安装了它,需要升级到Python3.11。
Tried to look for an option to upgrade it to Python 3.11, but it seems that there isn't a way to do that via CDK or CLI.
试图寻找一个选项将其升级到Python 3.11,但似乎没有办法通过CDK或CLI做到这一点。
更多回答
优秀答案推荐
Updating the CDK version will help to fix the said issue.
更新CDK版本将有助于解决上述问题。
- Update the
aws-cdk
version from the package.json
file.
- Delete the
node_modules/
folder in your project directory.
- Run the
npm install
to install the libraries within our package-lock.json
file.
更多回答
我是一名优秀的程序员,十分优秀!