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

Support for CosmosDb Mongo v6.0 #26537

Open
1 task done
saulfm08 opened this issue Jul 3, 2024 · 1 comment
Open
1 task done

Support for CosmosDb Mongo v6.0 #26537

saulfm08 opened this issue Jul 3, 2024 · 1 comment

Comments

@saulfm08
Copy link

saulfm08 commented Jul 3, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Terraform Version

1.6.3

AzureRM Provider Version

3.110.0

Affected Resource(s)/Data Source(s)

azurerm_cosmosdb_account

Terraform Configuration Files

resource "azurerm_cosmosdb_account" "cosmos_mongodb" {
  access_key_metadata_writes_enabled    = true
  analytical_storage_enabled            = false
  automatic_failover_enabled            = false
  create_mode                           = "Default"
  default_identity_type                 = "FirstPartyIdentity"
  free_tier_enabled                     = true
  is_virtual_network_filter_enabled     = true
  key_vault_key_id                      = null
  kind                                  = "MongoDB"
  local_authentication_disabled         = false
  location                              = "centralus"
  minimal_tls_version                   = "Tls12"
  mongo_server_version                  = "6.0"
  multiple_write_locations_enabled      = false
  name                                  = "my-sample-mongodb"
  network_acl_bypass_for_azure_services = false
  offer_type                            = "Standard"
  partition_merge_enabled               = false
  public_network_access_enabled         = true
  resource_group_name                   = "my-sample-rg"
  tags = {
    Environment             = "prod"
    defaultExperience       = "Azure Cosmos DB for MongoDB API"
    hidden-cosmos-mmspecial = ""
  }
  analytical_storage {
    schema_type = "FullFidelity"
  }
  backup {
    interval_in_minutes = 60
    retention_in_hours  = 360
    storage_redundancy  = "Local"
    tier                = null
    type                = "Periodic"
  }
  capabilities {
    name = "EnableMongo"
  }
  consistency_policy {
    consistency_level       = "Session"
    max_interval_in_seconds = 5
    max_staleness_prefix    = 100
  }
  geo_location {
    failover_priority = 0
    location          = "centralus"
    zone_redundant    = true
  }
  geo_location {
    failover_priority = 1
    location          = "eastus2"
    zone_redundant    = true
  }
  virtual_network_rule {
    id                                   = azurerm_subnet.db_subnet.id
    ignore_missing_vnet_service_endpoint = false
  }
}

Debug Output/Panic Output

╷
│ Error: expected mongo_server_version to be one of ["3.2" "3.6" "4.0" "4.2"], got 6.0
│ 
│   with azurerm_cosmosdb_account.cosmos_mongodb,
│   on azure-cosmosdb-mongo.tf line 15, in resource "azurerm_cosmosdb_account" "cosmos_mongodb":
│   15:   mongo_server_version                  = "6.0"
│ 
╵

Expected Behaviour

Create the resource with version 6.0 as it is available via api and azure portal

Actual Behaviour

│ Error: expected mongo_server_version to be one of ["3.2" "3.6" "4.0" "4.2"], got 6.0

Steps to Reproduce

No response

Important Factoids

No response

References

No response

@StefanSchoof
Copy link
Contributor

see #25889

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

No branches or pull requests

3 participants