Skip to content

An invalid enumeration value US_EAST_1 was specified. #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mattdornfeld opened this issue Oct 9, 2019 · 2 comments
Closed

An invalid enumeration value US_EAST_1 was specified. #49

mattdornfeld opened this issue Oct 9, 2019 · 2 comments

Comments

@mattdornfeld
Copy link

mattdornfeld commented Oct 9, 2019

Can anyone explain why I'm getting the below error?

Error: error creating MongoDB Cluster: POST https://cloud.mongodb.com/api/atlas/v1.0/groups/5d9d6380014b76f54c449b2b/clusters: 400 (request "Bad Request") An invalid enumeration value US_EAST_1 was specified.

This is my tf file

resource "mongodbatlas_project" "project" {
    name   = "project"
    org_id = "${var.mongodb_atlas_organization_id}"
}

resource "mongodbatlas_cluster" "cluster" {
  project_id   = "${mongodbatlas_project.project.id}"
  name         = "cluster"

  cluster_type                 = "REPLICASET"
  replication_factor           = 3
  backup_enabled               = true
  auto_scaling_disk_gb_enabled = true
  mongo_db_major_version       = "4.0"

  provider_instance_size_name = "M10"
  provider_name               = "GCP"
  disk_size_gb                = 10
  provider_region_name        = "US_EAST_1"
}
@hpio
Copy link

hpio commented Oct 15, 2019

hi @mattdornfeld, you are getting this error as you used incorect value for provider_region_name. Please have a look at https://docs.atlas.mongodb.com/reference/google-gcp/ and pick a valid Atlas Region

@themantissa
Copy link
Collaborator

Thank you @hpio for the assist!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants