当 运行 Terraform 计划时,AWS Lambda 没有 Python3.9 运行时上下文?
AWS Lambda Doesn't Have A Python3.9 Runtime Context When Running Terraform Plan?
有问题的具体错误是
Error: 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 dotnetcore1.0 dotnetcore2.0 dotnetcore2.1 dotnetcore3.1 nodejs4.3-edge go1.x ruby2.5 ruby2.7 provided provided.al2], got python3.9
on ../../../../module/data-platform-sftp/auth_lambda.tf line 30, in resource "aws_lambda_function" "auth_lambda":
30: runtime = var.lambda_runtime_context
我是 运行 Terraform 0.12.31。为什么在 AWS says it supports it here?
时运行时上下文中缺少 python 3.9
As we can see in the AWS docs python3.9 是有效的 lambda 运行时。
查看 Terraform 的 AWS provider changelog.md,似乎 python3.9 运行时已添加到 AWS 提供商的 3.55.0(2021 年 8 月 19 日)版本中。这意味着如果您固定了提供程序,则需要更新到更新的版本才能使用此运行时。
有问题的具体错误是
Error: 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 dotnetcore1.0 dotnetcore2.0 dotnetcore2.1 dotnetcore3.1 nodejs4.3-edge go1.x ruby2.5 ruby2.7 provided provided.al2], got python3.9
on ../../../../module/data-platform-sftp/auth_lambda.tf line 30, in resource "aws_lambda_function" "auth_lambda":
30: runtime = var.lambda_runtime_context
我是 运行 Terraform 0.12.31。为什么在 AWS says it supports it here?
时运行时上下文中缺少 python 3.9As we can see in the AWS docs python3.9 是有效的 lambda 运行时。
查看 Terraform 的 AWS provider changelog.md,似乎 python3.9 运行时已添加到 AWS 提供商的 3.55.0(2021 年 8 月 19 日)版本中。这意味着如果您固定了提供程序,则需要更新到更新的版本才能使用此运行时。