Skip to content

stratumctl db

Stratum Database: managed PostgreSQL

Terminal window
stratumctl db [flags]

Blue/green deployments: a major upgrade, class or parameter change with seconds of downtime and a rollback

Terminal window
stratumctl db blue-green-deployments [flags]

Aliases: blue-green, bg

stratumctl db blue-green-deployments create

Section titled “stratumctl db blue-green-deployments create”

Build a green copy of an instance at a target version, class or parameters

Terminal window
stratumctl db blue-green-deployments create <db-instance-id> [flags]

Records a blue/green deployment (202, “provisioning”). The reconciler renders wal_level = logical for the instance’s engine (a static parameter: the deployment is “pending-reboot” until the engine restarts in its maintenance window, or at once with –apply-immediately), checks the engine’s preconditions and reports them on the deployment (every table needs a primary key or replica identity; no large objects re-checked every pass until clean), creates a publication and one logical slot per database, takes a base snapshot, and builds GREEN as a restore of it at the target: a real instance in the project (“<name>-green”, its own endpoint, the same master credential) that subscribes to the instance and streams every write since. A major upgrade runs pg_upgrade on green before it starts. “replicating” while the lag is above the threshold, “available” under it — then “switchover”.

While the deployment lives the instance’s class, version, storage, parameter group, Multi-AZ, deletion and credential rotation are refused; tags, windows, security groups and retention still apply.

Terminal window
stratumctl db blue-green-deployments create db-3k8m2x7q9a --engine-version 17 --apply-immediately
stratumctl db blue-green-deployments create db-3k8m2x7q9a --instance-class db.m1.large
Flag Type Default Description
--allocated-storage int 0 Target storage in GiB (never smaller)
--apply-immediately bool false Restart the instance’s engine now for wal_level = logical instead of waiting for the maintenance window
--blue-retention-days int 7 How long the former blue is kept read-only after the switchover (1..30)
--engine-version string Target engine version: a published version of the same or a newer major (a bare major resolves to its newest minor)
--instance-class string Target instance class
--lag-threshold-bytes int64 16777216 Green counts as available at or under this lag; the switchover refuses above it
--parameter-group string Target parameter group (of the target’s family; a major upgrade defaults to the family’s default group)
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)
--storage-class string Target storage class
--tag stringToString Tags (key=value, repeatable)

stratumctl db blue-green-deployments delete

Section titled “stratumctl db blue-green-deployments delete”

Abandon a deployment (before the switchover), or retire the former blue now (after it)

Terminal window
stratumctl db blue-green-deployments delete <db-instance-id> <deployment-id> [flags]
Terminal window
stratumctl db blue-green-deployments delete db-3k8m2x7q9a bg-5k8m2x7q9a
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Describe a blue/green deployment

Terminal window
stratumctl db blue-green-deployments get <db-instance-id> <deployment-id> [flags]
Terminal window
stratumctl db blue-green-deployments get db-3k8m2x7q9a bg-5k8m2x7q9a
stratumctl db blue-green-deployments get db-3k8m2x7q9a bg-5k8m2x7q9a --output json
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

List an instance’s blue/green deployments

Terminal window
stratumctl db blue-green-deployments list <db-instance-id> [flags]
Terminal window
stratumctl db blue-green-deployments list db-3k8m2x7q9a
stratumctl db blue-green-deployments list db-3k8m2x7q9a --output json
Flag Type Default Description
--limit int 0 Page size; setting it (or –page-token) returns one page and prints the next token instead of listing everything
--page-token string Cursor from a previous page; returns that one page
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

stratumctl db blue-green-deployments rollback

Section titled “stratumctl db blue-green-deployments rollback”

Return the endpoint to the former blue after a switchover (green’s writes since are lost)

Terminal window
stratumctl db blue-green-deployments rollback <db-instance-id> <deployment-id> [flags]

Within the retention: the endpoint address goes back to the former blue’s engine and the rows swap back — the instance is what it was before the switchover, writable again — WITH THE LOSS OF EVERY WRITE GREEN ACCEPTED SINCE THE SWITCHOVER (there is no reverse replication across a major; those writes are in green’s final snapshot, “<deployment>-green-final”, and nowhere else). The deployment reads “rolled-back”; green is torn down.

Terminal window
stratumctl db blue-green-deployments rollback db-3k8m2x7q9a bg-5k8m2x7q9a
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

stratumctl db blue-green-deployments switchover

Section titled “stratumctl db blue-green-deployments switchover”

Switch the instance over to green (seconds of downtime)

Terminal window
stratumctl db blue-green-deployments switchover <db-instance-id> <deployment-id> [flags]

The reconciler fences the instance (no client network, read-only, every client session terminated), waits for green to apply everything up to the fence point (bounded by –timeout-seconds; past it the instance is unfenced and the deployment reports “switchover-failed” with nothing moved), copies the sequence values to green, drops its subscriptions, and moves the instance’s endpoint address to green’s engine — the DNS name, the id, the master credential do not change; the engine, class, storage, parameters, snapshots and backups are green’s from here on. The former blue is retained read-only as “<name>-old” for the retention, for “rollback”. Refused unless the deployment is available, the lag under the threshold, and the instance available and idle.

Terminal window
stratumctl db blue-green-deployments switchover db-3k8m2x7q9a bg-5k8m2x7q9a
stratumctl db blue-green-deployments switchover db-3k8m2x7q9a bg-5k8m2x7q9a --timeout-seconds 120
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)
--timeout-seconds int 300 How long the fence and the catch-up may take (30..3600)

List the published engine versions (operators: engine-versions publish)

Terminal window
stratumctl db engine-versions [flags]
Terminal window
stratumctl db engine-versions
stratumctl db engine-versions --engine postgres --output json
Flag Type Default Description
--engine string Filter by engine

Publish an engine image as an engine version (operator,)

Terminal window
stratumctl db engine-versions publish <major.minor> [flags]

Records that an image built from the db-postgres-<major> operator recipe is the engine for <major.minor>. The image must be launchable from p-system-db. The db reconciler then makes the launch templates on demand, and instances created with a bare major resolve to the newest published minor.

Terminal window
stratumctl db engine-versions publish 17.2 --image img-k3m9x2abqt
stratumctl db engine-versions publish 16.4 --image img-5k8m2x7q9a --status deprecated
Flag Type Default Description
--engine string postgres Engine
--image string Engine image id (required)
--status string available (default) | deprecated

List the database instance classes

Terminal window
stratumctl db instance-classes [flags]
Terminal window
stratumctl db instance-classes
stratumctl db instance-classes --output json

Database instances

Terminal window
stratumctl db instances [flags]

Aliases: instance

stratumctl db instances apply-pending-maintenance

Section titled “stratumctl db instances apply-pending-maintenance”

Opt in to the instance’s pending maintenance

Terminal window
stratumctl db instances apply-pending-maintenance <db-instance-id> [flags]

Records a choice on the instance’s pending maintenance actions (a newer minor of its major, a newer engine image behind its version — see “db instances get”). –opt-in immediate applies them on the reconciler’s next pass, the instance “upgrading” meanwhile; next-maintenance applies them in the next maintenance window even with auto minor version upgrade off; undo-opt-in withdraws a choice not yet applied. Single-AZ = one engine VM replacement on the same volume and endpoint; Multi-AZ = the standby first, one planned switchover, then the vacated slot.

Terminal window
stratumctl db instances apply-pending-maintenance db-3k8m2x7q9a
stratumctl db instances apply-pending-maintenance db-3k8m2x7q9a --opt-in next-maintenance
Flag Type Default Description
--opt-in string immediate immediate | next-maintenance | undo-opt-in
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Create a database instance (returns 202; the reconciler provisions it)

Terminal window
stratumctl db instances create <name> [flags]

Creates a database instance; the reconciler provisions it (202).

The master password lands in the instance’s master secret (db/<name>/master) either way. A password you give (–master-password-file, STRATUM_DB_MASTER_PASSWORD or the prompt) is yours and is never rotated automatically: rotate it with “stratumctl db instances rotate-master-credential”, or on a schedule you set with “stratumctl secrets rotation set <secret-id> –type db_master –target <db-instance-id> –cron…”. With –generate-master-password the service generates the password and rotates it monthly; read it from the secret (“stratumctl secrets get-value <secret-id>”).

Terminal window
stratumctl db instances create app --engine-version 16 --class db.m1.small --subnet-group app-subnets \
--master-username app_admin --generate-master-password
stratumctl db instances create app --engine-version 16.4 --class db.m1.large --subnet-group app-subnets \
--master-username app_admin --master-password-file./pw.txt --storage 100 --multi-az --security-group sg-3f8d2k9x
Flag Type Default Description
--availability-zone string Pin the primary to an availability zone of the subnet group
--backup-retention int 0 Backup retention in days (1..35)
--backup-window string Preferred backup window HH:MM-HH:MM (UTC)
--class string Instance class, e.g. db.m1.small (required)
--deletion-protection bool false Refuse deletes until cleared
--engine string postgres Engine
--engine-version string Engine version: a major (16) or major.minor (16.4) (required)
--extensions stringSlice Curated extensions to create in every database, e.g. pg_stat_statements (comma-separated or repeatable; see stratumctl db engine-versions list)
--generate-master-password bool false Let the service generate the master password into the instance’s secret and rotate it monthly (no password is read)
--maintenance-window string Preferred maintenance window ddd:HH:MM-ddd:HH:MM (UTC)
--master-password-file string File holding the master password (or - for stdin); else STRATUM_DB_MASTER_PASSWORD or a prompt. Never rotated automatically
--master-username string Master username (required)
--max-storage int 0 Storage autoscaling ceiling in GiB
--multi-az bool false Standby in a second availability zone
--no-auto-minor-upgrade bool false Do not apply minor versions in the maintenance window
--parameter-group string DB parameter group name (default: the family default)
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)
--security-group stringArray Security group id (repeatable)
--storage int 20 Allocated storage in GiB
--storage-class string Storage class (default: the cluster default)
--subnet-group string DB subnet group name (required)
--tag stringArray Tag key=value (repeatable)

Delete a database instance (a final snapshot is taken unless skipped)

Terminal window
stratumctl db instances delete <db-instance-id> [flags]
Terminal window
stratumctl db instances delete db-3k8m2x7q9a --final-snapshot-name app-final
stratumctl db instances delete db-3k8m2x7q9a --skip-final-snapshot
Flag Type Default Description
--final-snapshot-name string Name for the final snapshot (default: <name>-final-<timestamp>)
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)
--skip-final-snapshot bool false Delete without a final snapshot

Describe a database instance

Terminal window
stratumctl db instances describe <db-instance-id> [flags]

Aliases: get

Terminal window
stratumctl db instances describe db-3k8m2x7q9a
stratumctl db instances describe db-3k8m2x7q9a --output json
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Fail a Multi-AZ instance over to its standby

Terminal window
stratumctl db instances failover <db-instance-id> [flags]

A planned switchover: the instance goes “failing-over”, the reconciler stops the primary cleanly (the fence), promotes the standby, moves the endpoint address to it and swaps the members — seconds, one client reconnect — then rebuilds the old primary’s side as the new standby (“Multi-AZ: degraded” until it streams again, then “synced”). Refused (409) unless the instance is available and its pair synced: a standby that is not synced may lack commits and is never promoted on request.

Terminal window
stratumctl db instances failover db-3k8m2x7q9a
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

List database instances

Terminal window
stratumctl db instances list [flags]
Terminal window
stratumctl db instances list
stratumctl db instances list --output json
Flag Type Default Description
--limit int 0 Page size; setting it (or –page-token) returns one page and prints the next token instead of listing everything
--page-token string Cursor from a previous page; returns that one page
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Modify a database instance (disruptive changes queue as pending values)

Terminal window
stratumctl db instances modify <db-instance-id> [flags]
Terminal window
stratumctl db instances modify db-3k8m2x7q9a --storage 200
stratumctl db instances modify db-3k8m2x7q9a --class db.m1.large --apply-immediately
stratumctl db instances modify db-3k8m2x7q9a --extensions pg_stat_statements,pgstattuple
Flag Type Default Description
--apply-immediately bool false Apply every pending disruptive change now (this request’s, the ones already pending, a static parameter waiting for a restart) instead of in the maintenance window
--auto-minor-upgrade bool true Keep the instance current: minor versions AND rebuilt engine images apply in the maintenance window (off = listed under Maintenance, wait for apply-pending-maintenance)
--backup-retention int 0 Backup retention in days (1..35)
--backup-window string Preferred backup window HH:MM-HH:MM (UTC)
--class string Instance class (pending until applied)
--clear-max-storage bool false Turn storage autoscaling off
--deletion-protection bool false Refuse deletes until cleared
--engine-version string Minor version within the same major (a major change is a blue/green deployment)
--extensions stringSlice Replace the curated extension set (comma-separated; empty string removes them all — a drop something depends on is refused)
--maintenance-window string Preferred maintenance window ddd:HH:MM-ddd:HH:MM (UTC)
--max-storage int 0 Storage autoscaling ceiling in GiB
--multi-az bool false Add or remove the standby (pending until applied)
--parameter-group string DB parameter group name
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)
--security-group stringArray Security group id (repeatable; replaces the set)
--storage int 0 Allocated storage in GiB (grow only)
--tag stringArray Tag key=value (repeatable; replaces the set)

Restart the engine

Terminal window
stratumctl db instances reboot <db-instance-id> [flags]

Restarts the engine in place: the instance goes “rebooting”, the agent restarts postgres — seconds of downtime, the VM and the data volume untouched — and the instance is “available” again once it accepts connections. A static parameter waiting for a restart (parameterApplyStatus pending-reboot) applies with it. –failover reboots a Multi-AZ instance through a planned failover instead (the same operation as “db instances failover”: the standby takes over, the old primary is rebuilt).

Terminal window
stratumctl db instances reboot db-3k8m2x7q9a
stratumctl db instances reboot db-3k8m2x7q9a --failover
Flag Type Default Description
--failover bool false Reboot through a planned failover (Multi-AZ only)
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

stratumctl db instances restore-to-point-in-time

Section titled “stratumctl db instances restore-to-point-in-time”

Restore an instance to a time in its recovery window, as a NEW instance (returns 202)

Terminal window
stratumctl db instances restore-to-point-in-time <db-instance-id> [flags]
Terminal window
stratumctl db instances restore-to-point-in-time db-3k8m2x7q9a --name app-at-noon --target-time 2026-09-22T12:00:00Z
stratumctl db instances restore-to-point-in-time db-3k8m2x7q9a --name app-latest
Flag Type Default Description
--availability-zone string Availability zone
--class string Instance class for the new instance (default: the snapshot’s)
--name string Name of the new instance (required)
--parameter-group string DB parameter group (default: the snapshot’s)
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)
--security-group stringArray VPC security group id for the endpoint (repeatable)
--storage int 0 Allocated storage in GiB (default: the snapshot’s; never smaller)
--subnet-group string DB subnet group (default: the snapshot’s)
--tag stringArray Tag key=value (repeatable)
--target-time string RFC 3339 time to replay to (default: latestRestorableTime)

stratumctl db instances rotate-master-credential

Section titled “stratumctl db instances rotate-master-credential”

Rotate the master password now (the secret’s db_master schedule is marked due;)

Terminal window
stratumctl db instances rotate-master-credential <db-instance-id> [flags]

Marks the instance’s master secret due for rotation. The next secrets pass stages a new password as the secret’s PENDING version, the engine applies it through its agent and the version is promoted to CURRENT once the engine confirms; masterUserSecret.status reads “rotating” until then. The old password stops working the moment the engine applies the new one — read the secret at connect time.

A password the service generated rotates monthly on its own; the schedule’s cron is yours to change with “stratumctl secrets rotation set”. A password you supplied at create is never rotated automatically: this command rotates it once (the service makes a schedule for this rotation and withdraws it afterwards), and “stratumctl secrets rotation set <secret-id> –type db_master –target <db-instance-id> –cron…” puts it on a schedule.

Terminal window
stratumctl db instances rotate-master-credential db-3k8m2x7q9a
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

DB parameter groups: engine configuration

Terminal window
stratumctl db parameter-groups [flags]

Aliases: parameter-group, pg

Create a DB parameter group at the family defaults

Terminal window
stratumctl db parameter-groups create <name> [flags]
Terminal window
stratumctl db parameter-groups create app-pg16 --family postgres16
stratumctl db parameter-groups create app-pg16 --family postgres16 --description "app tuning" --tag env=prod
Flag Type Default Description
--description string Description
--family string Parameter family, e.g. postgres16 (required)
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)
--tag stringArray Tag key=value (repeatable)

Delete a DB parameter group (refused for defaults and while in use)

Terminal window
stratumctl db parameter-groups delete <name> [flags]
Terminal window
stratumctl db parameter-groups delete app-pg16
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Describe a DB parameter group

Terminal window
stratumctl db parameter-groups describe <name> [flags]

Aliases: get

Terminal window
stratumctl db parameter-groups describe app-pg16
stratumctl db parameter-groups describe app-pg16 --output json
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

List DB parameter groups (the family defaults appear on first use)

Terminal window
stratumctl db parameter-groups list [flags]
Terminal window
stratumctl db parameter-groups list
stratumctl db parameter-groups list --output json
Flag Type Default Description
--limit int 0 Page size; setting it (or –page-token) returns one page and prints the next token instead of listing everything
--page-token string Cursor from a previous page; returns that one page
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

List a parameter group’s parameters

Terminal window
stratumctl db parameter-groups parameters <name> [flags]
Terminal window
stratumctl db parameter-groups parameters app-pg16
stratumctl db parameter-groups parameters app-pg16 --changed
Flag Type Default Description
--changed bool false Only parameters set by a user
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Reset every parameter of a group to the family default

Terminal window
stratumctl db parameter-groups reset <name> [flags]
Terminal window
stratumctl db parameter-groups reset app-pg16
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

stratumctl db parameter-groups set-parameters

Section titled “stratumctl db parameter-groups set-parameters”

Set parameters on a parameter group (–param name=value, repeatable)

Terminal window
stratumctl db parameter-groups set-parameters <name> [flags]
Terminal window
stratumctl db parameter-groups set-parameters app-pg16 --param log_min_duration_statement=250
stratumctl db parameter-groups set-parameters app-pg16 --param max_connections=300 --pending-reboot
Flag Type Default Description
--param stringArray Parameter name=value (repeatable, required)
--pending-reboot bool false Apply at the next reboot (required for static parameters)
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Update a DB parameter group’s description or tags

Terminal window
stratumctl db parameter-groups update <name> [flags]
Terminal window
stratumctl db parameter-groups update app-pg16 --description "app tuning, v2"
stratumctl db parameter-groups update app-pg16 --tag env=prod --tag team=a
Flag Type Default Description
--description string Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)
--tag stringArray Tag key=value (repeatable; replaces the set)

Database snapshots: consistent points of an instance (manual and automated)

Terminal window
stratumctl db snapshots [flags]

Aliases: snapshot

Take a manual snapshot of an instance (returns 202; the reconciler takes it on the live engine)

Terminal window
stratumctl db snapshots create <name> [flags]
Terminal window
stratumctl db snapshots create before-migration --instance db-3k8m2x7q9a
Flag Type Default Description
--instance string The instance to snapshot (db-…, required)
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)
--tag stringArray Tag key=value (repeatable)

Delete a manual snapshot (automated ones expire with the retention)

Terminal window
stratumctl db snapshots delete <snapshot-id> [flags]
Terminal window
stratumctl db snapshots delete dbsnap-5k8m2x7q9a
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Describe a database snapshot

Terminal window
stratumctl db snapshots describe <snapshot-id> [flags]

Aliases: get

Terminal window
stratumctl db snapshots describe dbsnap-5k8m2x7q9a
stratumctl db snapshots describe dbsnap-5k8m2x7q9a --output json
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

List database snapshots

Terminal window
stratumctl db snapshots list [flags]
Terminal window
stratumctl db snapshots list
stratumctl db snapshots list --instance db-3k8m2x7q9a --type manual
Flag Type Default Description
--instance string Only one instance’s snapshots (db-…)
--limit int 0 Page size; setting it (or –page-token) returns one page and prints the next token instead of listing everything
--page-token string Cursor from a previous page; returns that one page
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)
--type string Only manual or automated

Restore a snapshot into a NEW instance (returns 202; the engine replays to the snapshot’s point before it serves)

Terminal window
stratumctl db snapshots restore <snapshot-id> [flags]
Terminal window
stratumctl db snapshots restore dbsnap-5k8m2x7q9a --name app-copy
stratumctl db snapshots restore dbsnap-5k8m2x7q9a --name app-copy --class db.m1.large --storage 100
Flag Type Default Description
--availability-zone string Availability zone
--class string Instance class for the new instance (default: the snapshot’s)
--name string Name of the new instance (required)
--parameter-group string DB parameter group (default: the snapshot’s)
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)
--security-group stringArray VPC security group id for the endpoint (repeatable)
--storage int 0 Allocated storage in GiB (default: the snapshot’s; never smaller)
--subnet-group string DB subnet group (default: the snapshot’s)
--tag stringArray Tag key=value (repeatable)

DB subnet groups: the subnets an instance may live in

Terminal window
stratumctl db subnet-groups [flags]

Aliases: subnet-group

Create a DB subnet group (all subnets in one VPC)

Terminal window
stratumctl db subnet-groups create <name> [flags]
Terminal window
stratumctl db subnet-groups create app-subnets --subnet subnet-3k8m2x7q --subnet subnet-6k2m8x4q
Flag Type Default Description
--description string Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)
--subnet stringArray Subnet id (repeatable, required)
--tag stringArray Tag key=value (repeatable)

Delete a DB subnet group (refused while an instance uses it)

Terminal window
stratumctl db subnet-groups delete <name> [flags]
Terminal window
stratumctl db subnet-groups delete app-subnets
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Describe a DB subnet group

Terminal window
stratumctl db subnet-groups describe <name> [flags]

Aliases: get

Terminal window
stratumctl db subnet-groups describe app-subnets
stratumctl db subnet-groups describe app-subnets --output json
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

List DB subnet groups

Terminal window
stratumctl db subnet-groups list [flags]
Terminal window
stratumctl db subnet-groups list
stratumctl db subnet-groups list --output json
Flag Type Default Description
--limit int 0 Page size; setting it (or –page-token) returns one page and prints the next token instead of listing everything
--page-token string Cursor from a previous page; returns that one page
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Update a DB subnet group’s subnets, description or tags

Terminal window
stratumctl db subnet-groups update <name> [flags]
Terminal window
stratumctl db subnet-groups update app-subnets --subnet subnet-3k8m2x7q --subnet subnet-6k2m8x4q --subnet subnet-8k2m4x7q
stratumctl db subnet-groups update app-subnets --description "app tier subnets"
Flag Type Default Description
--description string Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)
--subnet stringArray Subnet id (repeatable; replaces the set)
--tag stringArray Tag key=value (repeatable; replaces the set)