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
241 stars 167 forks source link

Alert configuration roles array should not be required #201

Closed themantissa closed 4 years ago

themantissa commented 4 years ago

Provider version 0.5.0

Issue: The MongoDB Atlas documentation states that notifications.roles is required, when it is not (see https://docs.atlas.mongodb.com/reference/api/alert-configurations-create-config/) a request will be submitted to correct the docs bug. However roles really only applies if the notification type is GROUP, and even then when omitted it simply sends the alert to all users in the project. Currently requiring roles is likely to break alert configs set to EMAIL, which does not need roles.

themantissa commented 4 years ago

@PacoDw should hopefully be a quick fix.

themantissa commented 4 years ago

FYI to others 0.4.2 does not have this issues so if you upgraded to 0.5.0, please downgrade till this is addressed.