terraform-aws-modules/terraform-aws-lambda

Error: External Program Lookup Failed

Lahutsin opened this issue · 1 comments

I'll just leave it here, because I've run out of ideas what the problem might be.

10:07:36  Error: External Program Lookup Failed
10:07:36  
10:07:36    with module.Function.module.lambda.data.external.archive_prepare[0],
10:07:36    on .terraform/modules/Function.lambda/package.tf line 10, in data "external" "archive_prepare":
10:07:36    10:   program = [local.python, "${path.module}/package.py", "prepare"]
10:07:36  
10:07:36  The data source received an unexpected error while attempting to find the
10:07:36  program.
10:07:36  
10:07:36  The program must be accessible according to the platform where Terraform is
10:07:36  running.
10:07:36  
10:07:36  If the expected program should be automatically found on the platform where
10:07:36  Terraform is running, ensure that the program is in an expected directory. On
10:07:36  Unix-based platforms, these directories are typically searched based on the
10:07:36  '$PATH' environment variable. On Windows-based platforms, these directories
10:07:36  are typically searched based on the '%PATH%' environment variable.
module "Function" {
  source         = "git::ssh://git@..../aws-lambda.git"
  function_name  = "${var.aws_environment}test"
  handler        = "test"
  source_path    = "${path.root}/artifact.jar"
....
}```


maint.tf
vars.tf
....
artifact.jar

I'm going to lock this issue because it has been closed for 30 days . This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.