[英]updating runtime value of aws lambda function module into nodejs16
I need to update the runtime value from nodejs14 to nodejs16.我需要将运行时值从 nodejs14 更新为 nodejs16。 When I update the runtime of my terraform runtime value into nodejs16.x its giving the following error.
当我将 terraform 运行时值更新为 nodejs16.x 时,它会给出以下错误。
expected runtime to be one of [nodejs nodejs4.3 nodejs6.10 nodejs8.10 nodejs10.x nodejs12.x nodejs14.x java8 java8.al2 java11 python2.7 python3.6 python3.7 python3.8 python3.9 dotnetcore1.0 dotnetcore2.0 dotnetcore2.1 dotnetcore3.1 nodejs4.3-edge go1.x ruby2.5 ruby2.7 provided provided.al2], got nodejs16.x预期运行时是 [nodejs nodejs4.3 nodejs6.10 nodejs8.10 nodejs10.x nodejs12.x nodejs14.x java8 java8.al2 java11 python2.7 python3.6 python3.7 python3.8 python3.9 dotnetcore1.0 dotnetcore2 .0 dotnetcore2.1 dotnetcore3.1 nodejs4.3-edge go1.x ruby2.5 ruby2.7 提供 provided.al2],得到 nodejs16.x
nodejs16.x support has been added to v3.75.2 and v4.x AWS provider versions nodejs16.x 支持已添加到 v3.75.2 和 v4.x AWS 提供商版本
Check your AWS provider version in your terraform code and update it.检查您的 terraform 代码中的 AWS 提供商版本并进行更新。
changed the runtime value into nodejs16.x, aws cli new version wasn't installed, upgraded that.将运行时值更改为nodejs16.x,未安装aws cli新版本,升级它。 then I used aws provider version value as 4.15.0, this will give you error when we run terraform init.
然后我使用 aws 提供程序版本值为 4.15.0,当我们运行 terraform init 时,这会给你错误。 then you have to give command 'terraform init -upgrade.
那么你必须给出命令'terraform init -upgrade。 then the aws provider will be upgraded to the required one, this time the error was gone and nodejs16.x is valid
然后将 aws 提供程序升级到所需的提供程序,这次错误消失了,nodejs16.x 有效
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.