Giter Site home page Giter Site logo

Comments (2)

haidangwa avatar haidangwa commented on July 25, 2024 1

From what I'm seeing, when I run terraform plan, archive_file will update the timestamp on the resulting zip file; however, it doesn't actually update the file contents. I verified this manually by running my own checksum comparisons, and each time, the manual checksums are identical. Only the timestamp on the zip file is updated.

Diving deeper, I think this is merely a cosmetic issue, as the file's created date doesn't appear to be changed; only the modified date is getting changed on every plan, which indicates to me that terraform is touching the file every run.

$ GetFileInfo lambda_function_payload.zip 
file: "/*********/lambda-chef-node-cleanup/terraform/lambda_function_payload.zip"
type: "\0\0\0\0"
creator: "\0\0\0\0"
attributes: avbstclinmedz
created: 01/08/2019 21:56:25
modified: 01/09/2019 13:53:06

I'm using terraform v0.11.7 and terraform-provider-archive_v1.1.0_x4 at the moment.

from terraform-provider-archive.

dinvlad avatar dinvlad commented on July 25, 2024 1

Would it be possible to reset the zip file timestamp? Otherwise, we obtain a different md5 on it on every run, even though the contents (incl. the timestamps of the files inside the zip) don't change.

EDIT: Upon further analysis, the difference in my case was not due to the timestamp, but rather due to a file attribute difference.

from terraform-provider-archive.

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.