After updating to AWS provider 3.25.0 I got the following after exectuing pipeline:
in resource “aws_lambda_function” “lambda_function”:
651 4: resource “aws_lambda_function” “lambda_function” {
652
653
654
655 Error: handler and runtime must be set when PackageType is Zip
Can it be fixed somehow? Probably it is some bug the affect current functionality.
The main thing is that with version AWS Provider 3.15.0 everything is fine with this part. No issues, no errors. And anything wrong with the count. Probably it somehow related to added Lambda functionality in AWS provider 3.19.0 version that affect all versions after version 3.19.0. It is just assumption, no more.
@tbugfinder if null is committed the behaviour is the same:
Error: handler and runtime must be set when PackageType is Zip
line 4, in resource "aws_lambda_function" "lambda_function":
4:resource "aws_lambda_function" "lambda_function" {
I tried to replay it using source = "git::https://github.com/terraform-aws-modules/terraform-aws-lambda.git?ref=v1.26.0" however wasn’t able to raise the error (I didn’t use lookup functions, though).
Maybe you could provide a repo with a use-case to replay.