terraform show fails with provider 18.0.0 and older terraform state
When upgrading to version 18.0.0, the command terraform show fails with this message : Failed to marshal state to json: unsupported attribute "name_regex".
This can probably be fixed by updating the state before trying to read it, but in our case its not straightforward (we rely on terraform show during the plan phase).
Until the latest v17, the field name_regex was still written in the terraform state. Is there any way to have the deprecated fields omitted into the state before being completely removed ?
Note: relates to !2450 (merged)