Help with enabling new lambda runtime in older CDK version (1.2.0)

0

I have an old project that uses CDK v1.2.0. Among other things this project creates a lambda function for custom cf resource. I do not have the time to upgrade the CDK version to the latest. Also as the application is for purely internal demo purpose, I dont think there is any security issue in using the old version of CDK.

My current issue is that I am not able to deploy the project as the nodejs lambda runtime version is no longer supported by AWS. So I would like to know if there is any quick hacky way of enabling the new lambda runtime in the old CDK version. I tried to add the latest runtime version macros in the old version. But I was getting errors. If someone can guide me to do it the correct way, I would really appreciate it.

kiran
已提問 1 年前檢視次數 228 次
1 個回答
0

Hello,

I see that you are trying to deploy a cdk v1.2.0 project but as that nodejs lambda runtime version is no longer supported by AWS, you wish to know a way to enable the new lambda runtime in the old CDK version.

I would like to inform you that the correct way here, would be to update the cdk version as the cdk version you are using currently is compatible to the nodejs lambda runtime version you have right now. If you override the runtime property to the latest one, the flow would break as it would not be compatible with the cdk version you are using currently and you would get errors again.

Therefore, I highly recommend you to update the CDK version to the latest.

AWS
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南