Closed shaunkillingbeck closed 5 days ago
@Serpentiel would you be able to take a look at this? I think you deprecated the field originally so wondering if you have a better idea what is going on under the hood here
Hey, @shaunkillingbeck! 👋
I'm afraid I'm no longer actively participating in the maintenance of this repository.
I'll mention @byashimov or @rriski for additional help, though.
As a quick fix, I could suggest you to set the field to null
in your state manually. This should help with avoiding the problem until it's resolved.
Hey, @shaunkillingbeck! 👋
I'm afraid I'm no longer actively participating in the maintenance of this repository.
I'll mention @byashimov or @rriski for additional help, though.
As a quick fix, I could suggest you to set the field to
null
in your state manually. This should help with avoiding the problem until it's resolved.
Thanks @Serpentiel - @byashimov or @rriski thoughts on this? I had already tried the suggestion (set the field to null
in the state) and it didn't seem to resolve the issue unfortunately, which makes me think the populated peer_region
value is probably coming from the API and being compared to the null
value in the configuration
Hey @shaunkillingbeck thank you for you report, and sorry for the long response. Currently I'm trying to clarify this deprecation. It might be even not deprecated. So please ignore the message until it's fixed. Thanks!
Hey. It turns out the field was mistakenly deprecated. Moreover, it is create-only. Please make sure you set the value back before the upgrade, as I had to mark it as ForceNew
to fix this. Thank you!
What happened?
To comply with the instruction that
aiven_transit_gateway_vpc_attachment.peer_region
is deprecated, we removed the field from our terraform files. However every plan now shows the resource as changing i.e.peer_region = "[region]" -> null
in each plan, even after applying the change.What did you expect to happen?
We expected that removing the deprecated field would lead to no change in terraform plan (other than removing the deprecation warning)
What else do we need to know?
4.15.0
of the Aiven terraform provider on Linuxterraform apply
does not resolve the planned "change", it continues to show in subsequent plans