alterDatabaseReplication
Last updated: January 27, 2026
Alters replication and failover settings on an existing Snowflake database. Supports enabling/disabling replication to accounts, refreshing replica databases, managing failover configurations, and promoting replica databases to primary.
Note: This change type does not support automatic rollback or database inspection features (snapshot, diff, diff-changelog, and generate-changelog commands).
Available attributes
Attribute | Type | Description | Required |
|---|---|---|---|
| String | Name of the database to alter | Yes |
| Boolean | Only alter if the database exists using | No |
| Boolean | Refresh replica database with changes from primary | No* |
| Boolean | Promote replica database to primary | No* |
| Nested | Enable replication to specified accounts | No* |
| Nested | Disable replication to accounts | No* |
| Nested | Enable failover to accounts (Business Critical) | No* |
| Nested | Disable failover to accounts | No* |
* Exactly one operation (nested element or attribute) must be specified.
enableReplicationForAccounts attributes
Attribute | Type | Description | Required |
|---|---|---|---|
| String | Account identifier (e.g., | Yes |
disableReplicationForAccounts attributes
Attribute | Type | Description | Required |
|---|---|---|---|
| String | Account identifier (empty element disables all) | No |
enableFailoverForAccounts attributes
Attribute | Type | Description | Required |
|---|---|---|---|
| String | Account identifier (requires Business Critical) | Yes |
disableFailoverForAccounts attributes
Attribute | Type | Description | Required |
|---|---|---|---|
| String | Account identifier (empty element disables all) | No |