Python package not available.
Hello, I am running my AWS Lambda package on Gitlab and I am trying to manage the infrastructure management with the CI/CD. When I use the "terraform-aws-modules/lambda/aws" module (as provided by Hashicorp) I am getting the following error:
│ Error: External Program Lookup Failed
│
│ with module.lambda_layer_module.data.external.archive_prepare[0],
│ on .terraform/modules/lambda_layer_module/package.tf line 10, in data "external" "archive_prepare":
│ 10: program = [local.python, "${path.module}/package.py", "prepare"]
...
│ Platform: linux
│ Program: "python3"
│ Error: exec: "python3": executable file not found in $PATH
I understand the cause of this to be that the terraform image I use ("$CI_TEMPLATE_REGISTRY_HOST/gitlab-org/terraform-images/releases/1.4:v1.0.0", as defined by the terraform template https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Terraform/Base.gitlab-ci.yml) is built in this repository from alpine, which does not package python.
Is there a way to get Python on one of these images?
I have looked into using gitlab-org/terraform-images/releases/1.4 as a base image and installing python onto it, but using a seperate registry comes with significant challenges, which I would like to avoid.