Closed half2me closed 1 year ago
I am facing the same issue with the runtime variable. Investigating it I think it's not a limitation from the module itself, but from the AWS Terraform provider. You can find the enhacement request here and the good news are that the fix is already merged, so in the coming days, when the new AWS provider version is released we should be able to use it.
As a workaround, if you aren't using any specifig feature from 3.10, you can manually create the package and upload it to S3, or trigger the generation from terraform with the null_resource
resource and use the python3.9 runtime in the meantime. I found some inspiration for that here and the instructions to generate the zip package are here.
Hi @half2me. I found terraform AWS provider 4.64.0 was released few minutes ago. I updated the provider version in my code (terraform init -upgrade
) and the issue is solved to me. Now I am able to correctly deploy python3.10 lambda with this module. Can you please check if it's also your case?
@VidakovicTrendier works for me, closing the issue :) Thanks
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
Terraform v1.4.5 on darwin_arm64
provider registry.terraform.io/lukasaron/stripe v1.7.4
Reproduction Code [Required]
Steps to reproduce the behavior:
Yes
Yes
Create this lambda layer
Expected behavior
Lambda layer should have been created.
Actual behavior
Terminal Output Screenshot(s)
Additional context