akshaykarle / terraform-provider-mongodbatlas

Terraform provider for MongoDB Atlas
Mozilla Public License 2.0
123 stars 54 forks source link

Create container - regionName attribute required #91

Closed ghost closed 5 years ago

ghost commented 5 years ago

Hi,

I am unable to create a Altas container. Even though I am passing region to the TF resource, it doesn't get created and it fails at the end of terraform apply with * mongodbatlas_container.terraform: Error creating MongoDB Container: MongoDB Atlas: 400 The required attribute regionName was not specified.

It didn't happen previously when I downloaded the provider sometime in ~March (I downloaded on MacOs at that time and now I redownloaded for Linux build agent in Terraform Enterprise and started getting this error). This is what I have in the resource:

resource "mongodbatlas_container" "terraform" {
  depends_on = ["mongodbatlas_project.terraform"]
  group = "${mongodbatlas_project.terraform.id}"
  atlas_cidr_block = "${var.atlas_cidr}"
  provider_name = "AWS"
  region = "${var.atlas_region}"
}

The CIDR I am passing into the resource is 10.100.0.0/24, the region EU_CENTRAL_1.

ghost commented 5 years ago

Ah seems like this is the subject of PR https://github.com/akshaykarle/terraform-provider-mongodbatlas/pull/85