Skip to content
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

Can't create cluster on Azure due to missing required attribute diskTypeName #21

Open
Brian-Gaffney opened this issue May 29, 2018 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Brian-Gaffney
Copy link

diskTypeName is a required attribute when deploying a non-shared (M10 and above) cluster to Azure however it's not supported by this TF provider.

When trying to deploy a non-shared cluster instance to Azure the MongoDB Atlas API returns a 400 error with the following message:

The required attribute diskTypeName was not specified

Is it possible to add diskTypeName as a supported attribute of this provider?

Thanks.


API documentation explaining the diskTypeName attribute: https://docs.atlas.mongodb.com/reference/api/clusters-modify-one/index.html


Example .tf file that will trigger the error:

provider "mongodbatlas" {
    username = "fake@fake.com"
    api_key = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

resource "mongodbatlas_cluster" "db_cluster" {
    name = "tf-db-cluster"
    group = "xxxxxxxxxxxxxxx"
    mongodb_major_version = "3.6"
    provider_name = "AZURE"
    region = "US_EAST_2"
    size = "M20"
    backup = false
    disk_gb_enabled = false
}
@akshaykarle akshaykarle added enhancement New feature or request good first issue Good for newcomers labels May 31, 2018
@akshaykarle
Copy link
Owner

Thanks for reporting that @Brian-Gaffney . Will look into this soon, but a PR is welcome if you want to give it a shot :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants