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

data lookup for azurerm_cosmosdb_mongo_database #13047

Closed
stravze opened this issue Aug 18, 2021 · 2 comments · Fixed by #13123
Closed

data lookup for azurerm_cosmosdb_mongo_database #13047

stravze opened this issue Aug 18, 2021 · 2 comments · Fixed by #13123

Comments

@stravze
Copy link

stravze commented Aug 18, 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

data lookup required for resource azurerm_cosmosdb_mongo_database

Currently unable to do data lookup for azurerm_cosmosdb_mongo_database, when creating mongo_collections

New or Affected Resource(s)

  • azurerm_cosmosdb_mongo_database

Potential Terraform Configuration

data "azurerm_resource_group" "example" {
  name = "cosmos-resource-group"
}

data "azurerm_cosmosdb_account" "example" {
  name                = "cosmos-example"
  resource_group_name = data.azurerm_resource_group.example.name
}

data "azurerm_cosmosdb_mongo_database" "example" {
  name                = "mongo-database-example"
  resource_group_name = data.azurerm_cosmosdb_account.example.resource_group_name
  account_name        = data.azurerm_cosmosdb_account.example.name

}

resource "azurerm_cosmosdb_mongo_collection" "example" {
  name                = "cosmos-mongo-collection-example"
  resource_group_name = data.azurerm_cosmosdb_account.example.resource_group_name
  account_name        = data.azurerm_cosmosdb_account.example.name
  database_name       = data.azurerm_cosmosdb_mongo_database.example.name

  default_ttl_seconds = "777"
  shard_key           = "uniqueKey"
  throughput          = 400
}

References

https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/cosmosdb_mongo_collection

  • #0000
@github-actions
Copy link

github-actions bot commented Sep 2, 2021

This functionality has been released in v2.75.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

github-actions bot commented Oct 3, 2021

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 Oct 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants