Comments (5)
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.
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.
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.
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.
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)
- Remove OCSP post-revocation validation
- Reorganize code, update/remove old documentation HOT 1
- acme_registration: State migration
- acme_certificate: State migration
- acme_registration: Now manages "accounts" HOT 1
- acme_registration <-> acme_certificate resource relationship HOT 1
- Update CHANGELOG with relevant milestone items
- reg/cert: Ensure IDs don't change, restore resource URL attributes
- State migration smoke test HOT 2
- provider: Promote server_url to provider config variable
- resource/certificate: ID should change on renewal
- DNS provider support HOT 4
- Route53 provider timeout HOT 1
- provider.acme.server_url change not forcing a new resource HOT 1
- Plugin usage on Terraform Enterprise HOT 1
- v1.0.0 - Change from ACME staging to prod HOT 2
- Resource to generate a PKCS #12 archive file HOT 2
- Publish your PGP Fingerprint HOT 1
- Migration from dns_challenge config to environment variables config stuck in state HOT 1
- Terraform Provider Development Program HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-acme-old.