Open joshwright10 opened 1 year ago
@joshwright10 thanks for opening this issue. I would like to explain that the endpoint
in Terraform corresponds to the documentEndpoint in Azure API. Per the following resource JSON data in the Azure portal, the documentEndpoint
should be "https://demo-cosmos-mangodb.documents.azure.com:443/", the mongoEndpoint
should be "https://demo-cosmos-mangodb.mongo.cosmos.azure.com:443/". So the endpoint
in Terraform is documentEndpoint
instead of mongoEndpoint
.
Terraform depends on the Azure API, the API does not expose property mongoEndpoint
. Could you file an issue here requesting to expose mongoEndpoint
if you need it? OncemongoEndpoint
is available, terraform would follow up by priority.
Is there an existing issue for this?
Community Note
Terraform Version
1.3.6
AzureRM Provider Version
3.42.0
Affected Resource(s)/Data Source(s)
azurerm_cosmosdb_account
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Attribute reference
endpoint
:https://demo-cosmos-mangodb.mongo.cosmos.azure.com:443/
Actual Behaviour
Attribute reference
endpoint
:https://demo-cosmos-mangodb.documents.azure.com:443/
Steps to Reproduce
terraform apply
Important Factoids
No response
References
No response