Closed boredland closed 4 years ago
when creating a cluster with this conifiguration:
resource "mongodbatlas_cluster" "test" { project_id = var.project_id name = "test-mh20" num_shards = 1 replication_factor = 3 backup_enabled = true auto_scaling_disk_gb_enabled = true mongo_db_major_version = "4.2" //Provider Settings "block" provider_name = "GCP" disk_size_gb = 10 provider_instance_size_name = "M10" provider_region_name = "europe-west3" }
I get a 400 (request "Bad Request") The required attribute regionName was not specified.
400 (request "Bad Request") The required attribute regionName was not specified.
Besides that, there seems to be an issue in the README regarding the provider config. This works (from the terraform provider docs):
provider "mongodbatlas" { public_key = local.mongodbatlas.public_key private_key = local.mongodbatlas.private_key }
okay, the error message is crap. The error was the wrong region code. It should be "EUROPE_WEST_3"
when creating a cluster with this conifiguration:
I get a
400 (request "Bad Request") The required attribute regionName was not specified.
Besides that, there seems to be an issue in the README regarding the provider config. This works (from the terraform provider docs):