Giter VIP home page Giter VIP logo

Comments (7)

1vanzamarripa avatar 1vanzamarripa commented on July 26, 2024 1

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.

from terraform-aws-notify-slack.

antonbabenko avatar antonbabenko commented on July 26, 2024 1

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:

TF_RECREATE_MISSING_LAMBDA_PACKAGE=false terraform apply

from terraform-aws-notify-slack.

1vanzamarripa avatar 1vanzamarripa commented on July 26, 2024

Also tried this configuration:

  source = "terraform-aws-modules/notify-slack/aws"
  version = "3.0.0"

instead of
source = "github.com/terraform-aws-modules/terraform-aws-notify-slack.git?ref=v3.0.0"

from terraform-aws-notify-slack.

antonbabenko avatar antonbabenko commented on July 26, 2024

I am trying to reproduce it now and I can't.

If resource null_resource.archive[0] is the only one which it says "must be replaced" it means that the deployment package should be recreated locally because it has wrong timestamp. This should not happen normally.

Which version of OS, Terraform, Python do you use?

from terraform-aws-notify-slack.

1vanzamarripa avatar 1vanzamarripa commented on July 26, 2024

Here you go:

python --version
Python 3.8.0
 terraform --version
Terraform v0.12.20

tested on macOS

Maybe my backend state is somehow messed up then? Trying to understand what I'm doing wrong.

from terraform-aws-notify-slack.

1vanzamarripa avatar 1vanzamarripa commented on July 26, 2024

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:

TF_RECREATE_MISSING_LAMBDA_PACKAGE=false terraform apply

Thanks!

from terraform-aws-notify-slack.

github-actions avatar github-actions commented on July 26, 2024

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.

from terraform-aws-notify-slack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.