简体   繁体   English

将 aws lambda function 模块的运行时值更新到 nodejs16

[英]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.

相关问题 无法在nodejs中导入模块'handler'aws lambda函数 - Unable to import module 'handler' aws lambda function in nodejs 用 nodejs 编写的 AWS Lambda 函数没有更新我的 DynamoDB - AWS Lambda function written in nodejs is not updating my DynamoDB 将 Lambda 函数更新到新的运行时。 为什么 cURL 不再在 AWS Lambda 上的 Node 10 中工作? - Updating Lambda function to new runtime. Why is cURL no longer working in Node 10 on AWS Lambda? AWS nodejs lambda function,动态改变环境变量的值 - AWS nodejs lambda function, change dynamically the value of environment variable AWS Lambda不触发Node.js请求模块 - AWS Lambda not firing nodejs request module 错误:在 NodeJS AWS 中找不到模块“aws-sdk” Lambda Function - Error: Cannot find module 'aws-sdk' in NodeJS AWS Lambda Function 在Elastic Beanstalk和AWS Lambda上更新Node.js API - Updating nodejs API on Elastic Beanstalk and AWS Lambda lambda 函数中的 AWS NodeJS lambda 调用 - AWS NodeJS lambda call within a lambda function 在 a.then or.catch 中终止 nodejs aws lambda function function - Terminate nodejs aws lambda function in a .then or .catch function 带有 PG-Promise 的 AWS Lambda NodeJS - 从模块调用函数时获得空查询结果 - AWS Lambda NodeJS with PG-Promise - get empty query result when calling a function from a module
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM