Closed t-cliff closed 1 year ago
module "pg8000_lambda_layer" {
# omitted...
source_path = {path = "./Modules/python.zip"}
}
source_path
is in the incorrect format.
Please look into examples/complete
for more examples -
https://github.com/terraform-aws-modules/terraform-aws-lambda/blob/master/examples/complete/main.tf
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.
Description
Please provide a clear and concise description of the issue you are encountering, and a reproduction of your configuration (see the
examples/*
directory for references that you can copy+paste and tailor to match your configs if you are unable to copy your exact configuration). The reproduction MUST be executable by runningterraform init && terraform apply
without any further changes.If your request is for a new feature, please use the
Feature request
template.⚠️ Note
Before you submit an issue, please perform the following first:
.terraform
directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!):rm -rf .terraform/
terraform init
Versions
1.5.0
Reproduction Code [Required]
Steps to reproduce the behavior: Terraform Code
Lambda Code
Expected behavior
Lambda ran successfully!
Actual behavior
When I manually and use resource to create the layer the import of pg8000 works as expected, only doesnt work when I use module.
Terminal Output Screenshot(s)
Additional context