Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary plan updates in the IntentResource Update method #29

Open
ctjnkns opened this issue Jan 13, 2024 · 0 comments
Open

Comments

@ctjnkns
Copy link
Owner

ctjnkns commented Jan 13, 2024

This may be unnecessary.

Is anything other than the timestamp subject to change? Update the timestamp and commit the state. Your comment references values which must be retrieved, but here's the thing: if they're not part of the config/plan, the Update() method will never run, so those values will be out-of-date in the terraform state until a configurable value is changed. If you think users might rely on these read-only (computed) attributes, it's better to make them available via a data source (always current!) than to consume them via a resource which may become stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant