-
-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tried v3.0.0 - unexpected terraform replacement #84
Tried v3.0.0 - unexpected terraform replacement #84
Comments
Also tried this configuration:
instead of |
I am trying to reproduce it now and I can't. If resource Which version of OS, Terraform, Python do you use? |
Here you go:
tested on macOS Maybe my backend state is somehow messed up then? Trying to understand what I'm doing wrong. |
This fails in my case because I'm running it on a CI/CD pipeline that clones the git repository every-time it runs and the module thinks that the zip file it generates in builds/ is a new one because it is always re-built on every pipeline run. I tried committing the builds directory to git source code but since the pipeline clones the repo everytime, the module always also thinks is a new zip file because the timestamp changes when the source code is cloned. |
Resolves: terraform-aws-modules/terraform-aws-notify-slack#84 Usage: > TF_RECREATE_MISSING_LAMBDA_PACKAGE=false terraform apply
Here is the fix which allows users to run this module without having archive locally. Please use v3.1.0 and let us know if the problem persists. So, when you update the version of this module, you need to tell your CI/CD pipeline to set environment variable before running terraform:
|
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. |
Tried using the new version , with this setup:
First time terraform apply works perfectly fine, however on a re-run, this is the outcome:
The resource shouldn't be expected to be replaced every time you run the terraform apply command just because there's a different timestamp.
The text was updated successfully, but these errors were encountered: