Skip to content

Conversation

yottta
Copy link

@yottta yottta commented Sep 18, 2025

Related Issue

Fixes #1226

Description

Since the request to plan modifiers contains no information about the attribute configuration, I added the WriteOnly attribute one into each type request struct, later used in requiresReplaceIfModifier to check if the modifier should be executed or not.
Note that a write only attribute can trigger a replacement only when the value of that particular field is present into the configuration.

Rollback Plan

  • If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain: No

Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
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

Successfully merging this pull request may close these issues.

Write only PlanModifier RequiresReplace is never executed
1 participant