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
246 stars 177 forks source link

fix: Provide err when error message populated in `mongodbatlas_privatelink_endpoint` and `mongodbatlas_privatelink_endpoint_service` #2803

Closed cveticm closed 6 days ago

cveticm commented 1 week ago

Description

Both mongodbatlas_privatelink_endpoint_service and mongodbatlas_privatelink_endpoint have a error_message computed attribute (present in GET response), however no error message is being created to make users aware of the error when it is present. This PR adds the necessary logic to inform the user when an error is present.

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

Type of change:

Required Checklist:

Further comments

github-actions[bot] commented 1 week ago

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