Skip to content

Instantly share code, notes, and snippets.

@apinter
Created June 7, 2024 10:26
Show Gist options
  • Save apinter/a723f683485751f752a500901ae68397 to your computer and use it in GitHub Desktop.
Save apinter/a723f683485751f752a500901ae68397 to your computer and use it in GitHub Desktop.
Dev mongo change
# ovh_cloud_project_database.mongodb must be replaced
-/+ resource "ovh_cloud_project_database" "mongodb" {
      ~ advanced_configuration  = {} -> (known after apply)
      ~ backup_regions          = [
          - "GRA",
        ] -> (known after apply)
      ~ backup_time             = "09:00:00" -> (known after apply)
      ~ created_at              = "2023-11-17T14:37:58.851097+01:00" -> (known after apply)
      ~ disk_type               = "high-speed" -> (known after apply)
      ~ endpoints               = [
          - {
              - component = "mongodbSrv"
              - domain    = "mongodb-.database.cloud.ovh.net"
              - port      = 0
              - scheme    = "mongodb+srv"
              - ssl       = true
              - ssl_mode  = "required"
              - uri       = "mongodb+srv://<username>:<password>@mongodb-.database.cloud.ovh.net/admin?replicaSet=replicaset&tls=true"
                # (1 unchanged attribute hidden)
            },
          - {
              - component = "mongodb"
              - domain    = ".database.cloud.ovh.net"
              - port      = 27017
              - scheme    = "mongodb"
              - ssl       = true
              - ssl_mode  = "required"
              - uri       = "mongodb://<username>:<password>@node1-.database.cloud.ovh.net,node2-.database.cloud.ovh.net,node3-.database.cloud.ovh.net/admin?replicaSet=replicaset&tls=true"
                # (1 unchanged attribute hidden)
            },
        ] -> (known after apply)
      ~ flavor                  = "db2-2" -> "db1-2"
      ~ id                      = "[REDACTED]" -> (known after apply)
      - kafka_rest_api          = false -> null
      ~ maintenance_time        = "13:00:00" -> (known after apply)
      ~ network_type            = "public" -> (known after apply)
      - opensearch_acls_enabled = false -> null
      ~ plan                    = "production" -> "essential"
      ~ status                  = "READY" -> (known after apply)
        # (5 unchanged attributes hidden)

      - nodes {
          - region     = "DE" -> null # forces replacement
            # (2 unchanged attributes hidden)
        }
      - nodes {
          - region     = "DE" -> null # forces replacement
            # (2 unchanged attributes hidden)
        }

        # (1 unchanged block hidden)
    }
    ```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment