Closed yerbaszen closed 1 year ago
This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days
This issue was automatically closed because of stale in 10 days
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
I have my infrastructure deployed with github actions. I call the module this way:
and I've tried the FAQs suggestions
TF_RECREATE_MISSING_LAMBDA_PACKAGE=false
as environmennt variablerecreate_missing_package = false
in the module call.the first time the pipeline runs, it works, It could runs multiple times after that, without making any changes to my lambas, and it is what is expected (no zip file being build, and no detecting any configuration changes to deploy), but if any change is made, or even the lambda is being removed completely, It always ends up throwing this error:
β οΈ 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
Module version [Required]: 4.7.2
Terraform version:
Provider version(s):
(taken from github workflow)
Installing datadog/datadog v3.20.0...
Installed datadog/datadog v3.20.0 (signed by a HashiCorp partner, key ID FB70BE941301C3EA)
Installing hashicorp/tls v4.0.4...
Installed hashicorp/tls v4.0.4 (signed by HashiCorp)
Installing hashicorp/archive v2.3.0...
Installed hashicorp/archive v2.3.0 (signed by HashiCorp)
Installing hashicorp/random v3.4.3...
Installed hashicorp/random v3.4.3 (signed by HashiCorp)
Installing hashicorp/null v3.2.1...
Installed hashicorp/null v3.2.1 (signed by HashiCorp)
Installing hashicorp/template v2.2.0...
Installed hashicorp/template v2.2.0 (signed by HashiCorp)
Installing hashicorp/local v2.3.0...
Installed hashicorp/local v2.3.0 (signed by HashiCorp)
Installing cloudposse/template v2.2.0...
Installed cloudposse/template v2.2.0 (self-signed, key ID 7B22D099488F3D11)
Installing hashicorp/aws v4.52.0...
Installed hashicorp/aws v4.52.0 (signed by HashiCorp)
Installing hashicorp/external v2.2.3...
Installed hashicorp/external v2.2.3 (signed by HashiCorp)
Reproduction Code [Required]
Steps to reproduce the behavior:
export TF_RECREATE_MISSING_LAMBDA_PACKAGE=false
then setup the module with similar valuesterraform init && terraform apply -auto-approve
Expected behavior
Lambda being able to be build (during apply time) and deployed only when necessary
Actual behavior
Lambda only gets built the first time.