Giter Club home page Giter Club logo

Comments (2)

natemccurdy avatar natemccurdy commented on August 10, 2024

Looks like this is actually related to hashicorp/terraform-provider-aws#29085

The last_modified value changes on each Terraform run for unknown reasons, which is why most modules that wrap aws_lambda_function ignore that with a lifecycle block.

I tested removing the filename attribute from this module, only leaving s3_key and s3_object (as that's what I need for my use case), and I removed the lifecycle block. The result is that Terraform detected drift on each run for unknown reasons. The last_modified changes every time Terraform runs.

# module.foo.module.lambda_changes.aws_lambda_function.this[0] will be updated in-place
  ~ resource "aws_lambda_function" "this" {
        id                             = "test"
      ~ last_modified                  = "2023-10-05T21:55:22.433+0000" -> (known after apply)
        tags                           = {}
        # (23 unchanged attributes hidden)

        # (2 unchanged blocks hidden)
    }

So, because of the bug I linked above, it's good that this module ignores last_modified. But an unfortunate side-effect of that on modern Terraform versions is the Warning seen in this bug post.

from terraform-aws-lambda-function.

thakurchander avatar thakurchander commented on August 10, 2024

Is there any workaround to get rid of this warning message ?

from terraform-aws-lambda-function.

Related Issues (13)

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.