Uploaded image for project: 'Infrastructure'
  1. Infrastructure
  2. INFRA-1755

Evergreen database password is not reliable.

    Details

    • Similar Issues:
    • Sprint:
      Evergreen - Milestone 2

      Description

      Short Version:
      Terraform will always apply the database password defined in the state file located on Azure
      Here

      Long Version:
      The first time terraform generates the value for ${random_id.prefix.hex}, stores it in the a state file and always keep the same value cfr documentation. It's possible monitor a variable value and only re-generate a random string when the monitored variable is changed cfr like PR

      Currently Terraform has no way to know if a database password was changed via a different way than terraform itself so it will not enforce the database password defined in the state but if we change any other setting from 'azurerm_postgresql_server', terraform will re-apply the password define in the state.

        Attachments

          Activity

          Show
          olblak Olivier Vernin added a comment - https://github.com/terraform-providers/terraform-provider-azurerm/issues/1823

            People

            • Assignee:
              rtyler R. Tyler Croy
              Reporter:
              olblak Olivier Vernin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: