Properties that are listed in both writeOnlyProperties
and createOnlyProperties
cause NotUpdatableException
#2138
Labels
writeOnlyProperties
and createOnlyProperties
cause NotUpdatableException
#2138
Community Note
Terraform CLI and Terraform AWS Cloud Control Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
https://gist.github.com/ejnarvala/e7470024d26692ca170ce1b6e83239a0
Expected Behavior
The update should not try to set
ApplyCapacity
Actual Behavior
The tf apply fails with:
Steps to Reproduce
apply_capacity
Important Factoids
This seems to be caused by this behavior from this change, which forces writeOnly properties to be added to the update request, but does not exclude properties that are writeOnly and createOnly.
this comment also mentions the same behavior - #1804 (comment)
References
The text was updated successfully, but these errors were encountered: