Coder Social home page Coder Social logo

Comments (5)

vancluever avatar vancluever commented on June 19, 2024

Hey @jdextraze!

Yeah - kinda wondering why I did that now but I can't think of any good reason - think this can just be updated in the schema and it be good to go. Will do that ASAP and push out a new release!

from terraform-provider-acme-old.

jdextraze avatar jdextraze commented on June 19, 2024

Thanks @vancluever for the quick answer. I found a way to get around it by modifying the state, so no rush.

from terraform-provider-acme-old.

vancluever avatar vancluever commented on June 19, 2024

Good to know! I'm reviewing what would need to happen to get this 100% working. I had to refresh my memory on why exactly it was ForceNew in the first place, the reason being that there is no update function in this resource due to how renewal of the certificate works (auto-renewal is a process that requires no configuration modification, so there is essentially nothing to update without a complete re-generation of the certificate).

I just need to dissect the workflow a bit to see what needs to happen so that updates to min_days_remaining go through immediately. There used to be an issue with Terraform (pre-data sources) where read-only resources (which this resource very much behaves like) sometimes took multiple updates for config modifications to properly propagate updates to dependent resources and I want to make sure this doesn't happen here.

from terraform-provider-acme-old.

vancluever avatar vancluever commented on June 19, 2024

Hey @jdextraze, just to mention some progress on this - I am working on a feature that will offer a solution to this and #15 - basically the ability for the provider to be able to control the diff outside of config. You can track the progress of the PR here: hashicorp/terraform#14887

What this will allow me to do is control how the certificate is diffed so that the certificate logically switches back to a computed state in the diff when it's at its renewal point, allowing the update to properly renew it. This ultimately will give a real use case for having an Update function in this resource, which will allow for attributes that are not ForceNew.

I'm guessing having it into master and fully released will probably be a few weeks, but after that's done I will be working on updating the plugin to use the new logic. Will update more then!

from terraform-provider-acme-old.

vancluever avatar vancluever commented on June 19, 2024

Hey @jdextraze, version v0.4.0 is now out which fixes this issue - as such closing this now, but let me know if there's any issues (especially since the update to v0.10.0-beta2 as the base).

Cheers!

from terraform-provider-acme-old.

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.