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
240 stars 168 forks source link

Cluster creation with Azure provider failed #15

Closed bobhlo closed 5 years ago

bobhlo commented 5 years ago

Provider settings diskIOPS and EncryptEBSVolume should be excluded in the payload when creating a cluster with Azure provider. Need conditional checks for providers in a few places such as https://github.com/terraform-providers/terraform-provider-mongodbatlas/blob/master/mongodbatlas/resource_mongodbatlas_cluster.go#L600-L601. See Atlas API doc - https://docs.atlas.mongodb.com/reference/api/clusters-create-one/ which indicates the two optional settings for AWS.

themantissa commented 5 years ago

@bobhlo - thank you, we are working on this fix with https://github.com/terraform-providers/terraform-provider-mongodbatlas/pull/11