Open bgshacklett opened 1 year ago
Voting for Prioritization
Volunteering to Work on This Issue
This is another case where a "meta-argument" (skip_final_backup
), which represents a flag intended for imperative activity, is stored in the state file. Because it's stored in the state file, an apply must be made to update the state file before the change can take place. I.e.: successfully deleting the file system would take two applies (one to set the flag, one more to actually delete the file system).
Unfortunately, while this should be a state-only update, the provider seems to be doing something with the resource and AWS immediately kicks it back due to the state of the file system.
Terraform Core Version
1.4.6
AWS Provider Version
4.67.0
Affected Resource(s)
Expected Behavior
I should be able to delete the file system.
Actual Behavior
When running a second apply, which will recreate the file system, I receive an error stating:
If I attempt to update the
skip_final_backup
option to set it totrue
, I get an error indicating that the file system can't be modified:Relevant Error/Panic Output Snippet
Terraform Configuration Files
private
Steps to Reproduce
skip_final_backup
value set tofalse
apply
. You should receive an error stating that a final backup cannot be taken:The file system resource will be tainted at this point.
skip_final_backup
option; set it totrue
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No