terraform-provider-aws

Why do I get "Error: handler and runtime must be set when PackageType is Zip" when deploying a Lambda function using Terraform?

Why do I get "Error: handler and runtime must be set when PackageType is Zip" when deploying a Lambda function using Terraform? Question: I have defined a Lambda function with Terraform like this: resource "aws_lambda_function" "this" { filename = "${path.module}/src/existing-files-lambda.zip" function_name = "ingest-existing-files-lambda" role = aws_iam_role.lambda.arn runtime = "python3.9" timeout = 900 environment { variables …

Total answers: 3