mongodb / terraform-provider-mongodbatlas

Terraform MongoDB Atlas Provider: Deploy, update, and manage MongoDB Atlas infrastructure as code through HashiCorp Terraform
https://registry.terraform.io/providers/mongodb/mongodbatlas
Mozilla Public License 2.0
230 stars 167 forks source link

fix: Sets all attributes of Azure `mongodbatlas_network_peering` as ForceNew, forcing recreation of the resource when updating #2299

Closed oarbusi closed 1 month ago

oarbusi commented 1 month ago

Description

Sets all attributes when updating an Azure network peering resource. Fixes https://github.com/mongodb/terraform-provider-mongodbatlas/issues/2281

Link to any related issue(s): CLOUDP-249269

Type of change:

Required Checklist:

Further comments

github-actions[bot] commented 1 month ago

APIx bot: a message has been sent to Docs Slack channel

oarbusi commented 1 month ago

After adding ForceNew to the Azure attributes, Azure update does not have to be handled in the Update method. Will investigate if AWS and GCP have the same behaviour and create a follow up PR if needed