terraform-azurerm-caf icon indicating copy to clipboard operation
terraform-azurerm-caf copied to clipboard

Bug report - mssql_servers module - sql_admin_password - Error invalid URI for request

Open enricomitri opened this issue 2 years ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Community Note

  • Please vote on this issue by adding a :thumbsup: 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

Version of the module you are using

5.6.0

Rover Version

No response

Terraform Version

No response

AzureRM Provider Version

No response

Affected Resource(s)/Data Source(s)

mssql_server/server.tf line 78, in resource "azurerm_key_vault_secret" "sql_admin_password"

Terraform Configuration Files

database = {
    
    mssql_servers = {
      db1 = {
        name                         = "db1"
        region                       = "region1"
        resource_group_key           = "mssql_region1"
        administrator_login          = data.sops_file.secrets.data["db1.adminuser"]
        administrator_login_password = data.sops_file.secrets.data["db1.adminpassword"]

Expected Behaviour

Terraform plan completed with no error with previous version, 5.5.9

Actual Behaviour

Terraform plan outputs this error:

Error: parsing Azure ID: parse "<plaintextpasswordstring>": invalid URI for request
    with module.caf.module.mssql_servers["db1"].azurerm_key_vault_secret.sql_admin_password[0],
    on .terraform/modules/caf/modules/databases/mssql_server/server.tf line 78, in resource "azurerm_key_vault_secret" "sql_admin_password":
    78:   key_vault_id = var.keyvault_id
exit status 1

Steps to Reproduce

terraform plan

Important Factoids

No response

References

No response

enricomitri avatar Jul 28 '22 15:07 enricomitri