You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/hyperdrive/configuration/rotate-credentials.mdx
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,11 @@ You can change the connection information and the connection credentials of your
12
12
1. (Recommended) Create a new Hyperdrive configuration with the new connection information and credentials, and update your Worker to use the new Hyperdrive configuration.
13
13
2. Update the existing Hyperdrive configuration with the new connection information and credentials.
14
14
15
-
## Use a new Hyperdrive configuration
15
+
## Use a new Hyperdrive configuration (Recommended)
16
16
17
-
Creating a new Hyperdrive configuration to update your database credentials allows you to keep your existing Worker configuration unchanged, gradually migrate your Worker to the new Hyperdrive configuration and easily roll back to the previous configuration if needed. To create a Hyperdrive that connects to an existing PostgreSQL database, use the [wrangler](/workers/wrangler/install-and-update/) CLI or the [Cloudflare dashboard](https://dash.cloudflare.com/?to=/:account/workers-and-pages/hyperdrive).
17
+
Creating a new Hyperdrive configuration to update your database credentials allows you to keep your existing Worker configuration unchanged, gradually migrate your Worker to the new Hyperdrive configuration and easily roll back to the previous configuration if needed.
18
+
19
+
To create a Hyperdrive that connects to an existing PostgreSQL database, use the [wrangler](/workers/wrangler/install-and-update/) CLI or the [Cloudflare dashboard](https://dash.cloudflare.com/?to=/:account/workers-and-pages/hyperdrive).
18
20
19
21
```sh
20
22
# wrangler v3.11 and above required
@@ -32,7 +34,7 @@ binding = "HYPERDRIVE"
32
34
id = "<your-hyperdrive-id-here>"
33
35
```
34
36
35
-
To update your Worker to use the new Hyperdrive configuration, redeploy your Worker or use [gradual deployments](https://developers.cloudflare.com/workers/configuration/versions-and-deployments/gradual-deployments/).
37
+
To update your Worker to use the new Hyperdrive configuration, redeploy your Worker or use [gradual deployments](/workers/configuration/versions-and-deployments/gradual-deployments/).
36
38
37
39
## Update the existing Hyperdrive configuration
38
40
@@ -42,3 +44,7 @@ You can update the configuration of an existing Hyperdrive configuration using t
Updating the settings of an existing Hyperdrive configuration does not purge Hyperdrive's cache and does not tear down the existing database connection pool. New connections will be established using the new connection information.
0 commit comments