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 - Enable Synapse Link #10419

Closed
ksista-ahc opened this issue Feb 1, 2021 · 5 comments
Closed

Support for CosmosDB - Enable Synapse Link #10419

ksista-ahc opened this issue Feb 1, 2021 · 5 comments

Comments

@ksista-ahc
Copy link

ksista-ahc commented Feb 1, 2021

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 "+1" or "me too" comments, 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

Description

Is there a way to enable Azure Synapse Link when creating azurerm_cosmosdb_account?

New or Affected Resource(s)

azurerm_cosmosdb_account

Potential Terraform Configuration

resource "azurerm_resource_group" "rg" {
  name     = var.resource_group_name
  location = var.resource_group_location
}

resource "random_integer" "ri" {
  min = 10000
  max = 99999
}

resource "azurerm_cosmosdb_account" "db" {
  name                = "tfex-cosmos-db-${random_integer.ri.result}"
  location            = azurerm_resource_group.rg.location
  resource_group_name = azurerm_resource_group.rg.name
  offer_type          = "Standard"
  kind                = "GlobalDocumentDB"
  
  enable_analytical_store = true
  analytical_store_ttl = -1
  enable_automatic_failover = true

  enable_synapse_link = true

  consistency_policy {
    consistency_level       = "Session"
    max_interval_in_seconds = 10
    max_staleness_prefix    = 200
  }

  geo_location {
    location          = var.failover_location
    failover_priority = 1
  }

  geo_location {
    prefix            = "tfex-cosmos-db-${random_integer.ri.result}-customid"
    location          = azurerm_resource_group.rg.location
    failover_priority = 0
  }
}

References

@T1loc
Copy link

T1loc commented Feb 5, 2021

Duplicate of : #10198

@favoretti
Copy link
Collaborator

Unfortunately from the looks of it it's not yet supported even by the latest SDK.

@bm77525-kr
Copy link

It looks like this should be available as noted here

@katbyte
Copy link
Collaborator

katbyte commented Jun 24, 2021

Hey @ksista-ahc - looks like this was added in #11655 so i'm going to close this

@katbyte katbyte closed this as completed Jun 24, 2021
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants