You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
If an issue is assigned to a user, that user is claiming responsibility for the issue.
Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.
The list of subnets might be able to be manipulated to maintain a specific order, however since the mirrored_resources block contains one or more un-ordered nested blocks, the provider should ignore any differences in ordering as long as the block contents are the same.
Steps to reproduce
terraform apply
terraform plan
Important Factoids
No response
References
No response
b/383183182
The text was updated successfully, but these errors were encountered:
Community Note
Terraform Version & Provider Version(s)
Terraform v1.10.1
on darwin_arm64
Affected Resource(s)
google_compute_packet_mirroring
Terraform Configuration
Debug Output
No response
Expected Behavior
After running an initial terraform apply, subsequent
terraform plan
operations should result in a no-op and detect no changes.Actual Behavior
Terraform detects changes required to the subnet blocks of the packet mirroring policy:
The GCP API seems to be returning the list of subnet mirrors in numerical ascending order, but reverse lexicographical order.
Terraform stores the state in lexographical order, and as such is detecting a drift every time a plan is run:
API Response will look like:
However the list used to construct the subnet mirror blocks will look like:
module.vpc.module.subnets.google_compute_subnetwork.subnetwork["us-central1/a-subnet"]
module.vpc.module.subnets.google_compute_subnetwork.subnetwork["us-central1/b-subnet"]
The list of subnets might be able to be manipulated to maintain a specific order, however since the
mirrored_resources
block contains one or more un-ordered nested blocks, the provider should ignore any differences in ordering as long as the block contents are the same.Steps to reproduce
terraform apply
terraform plan
Important Factoids
No response
References
No response
b/383183182
The text was updated successfully, but these errors were encountered: