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 EnableTtlOnCustomPath in cosmosdb_account_resource #21985

Closed
1 task done
brezam opened this issue May 31, 2023 · 2 comments
Closed
1 task done

Support for EnableTtlOnCustomPath in cosmosdb_account_resource #21985

brezam opened this issue May 31, 2023 · 2 comments

Comments

@brezam
Copy link
Contributor

brezam commented May 31, 2023

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 "+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

CosmosDB Accounts can have a capability called 'EnableTtlOnCustomPath'.
This capability does not seem to be supported in terraform yet, which means we cannot add it to any cosmosdb account.

The biggest issue is that we have instances created using terraform that now have this capability added, and any terraform plan shows recreation of the cosmosdb account.

I've made this PR with the capability added:
#21983

New or Affected Resource(s)/Data Source(s)

azurerm_cosmosdb_account

Potential Terraform Configuration

resource "azurerm_cosmosdb_account" "db" {
  name                = "cosmos-db-test"
  location            = "eastus2"
  resource_group_name = "cosmos-db-test"
  offer_type          = "Standard"
  kind                = "MongoDB"

  capabilities {
    name = "EnableTtlOnCustomPath"
  }
  capabilities {
    name = "DisableRateLimitingResponses"
  }
  capabilities {
    name = "EnableMongo"
  }
  capabilities {
    name = "EnableMongo16MBDocumentSupport"
  }
  capabilities {
    name = "EnableMongoRoleBasedAccessControl"
  }

  consistency_policy {
    consistency_level       = "Session"
  }

  geo_location {
    location          = "eastus"
    failover_priority = 0
    zone_redundant    = false
  }
}

References

No response

@brezam
Copy link
Contributor Author

brezam commented Jun 1, 2023

Solved by #21974

@brezam brezam closed this as completed Jun 1, 2023
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 May 26, 2024
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

2 participants