azurerm_mongo_cluster
resource does not accept random_password
value.
#28204
Labels
azurerm_mongo_cluster
resource does not accept random_password
value.
#28204
Is there an existing issue for this?
Community Note
Terraform Version
1.9.8
AzureRM Provider Version
v4.13.0
Affected Resource(s)/Data Source(s)
azurerm_mongo_cluster
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Cluster should be created using the result of
random_password
as theadministrator_password
Actual Behaviour
Create or update fails with:
│ Error:
administrator_password
is required whencreate_mode
is Default│
│ with azurerm_mongo_cluster.mongo_cluster,
│ on mongodb.tf line 10, in resource "azurerm_mongo_cluster" "mongo_cluster":
│ 10: resource "azurerm_mongo_cluster" "mongo_cluster" {
│
Using a literal string like
administrator_password = "hunter2"
works fine.I have attempted several different variants (storing the secret in a KV first and referencing it from there, storing the password result in a local and referencing it, but neither yields different results.)
Steps to Reproduce
Run the provided code using
terraform apply
Important Factoids
No
References
No response
The text was updated successfully, but these errors were encountered: