rack resources create
Create a new Resource at the Rack level. The type specifies the kind of Resource to create (e.g., postgres, redis, memcached). Optional key-value pairs configure the Resource.
Syntax
$ convox rack resources create <type> [Option=Value]...
Flags
| Flag | Short | Description |
|---|---|---|
--name |
-n |
Resource name |
--rack |
-r |
Rack name |
--wait |
-w |
Wait for completion |
Example Usage
$ convox rack resources create postgres MultiAZ=true -n shared-postgres --wait
Creating resource... OK, shared-postgres
Set the database version with EngineVersion. For postgres, an EngineVersion without Family also sets the matching Family. Requires rack version 20261005214736 or newer; on earlier Racks, pass Family with EngineVersion.
$ convox rack resources create postgres EngineVersion=16 -n reports-db --wait
Creating resource... OK, reports-db
To restore a postgres or mysql Resource from DatabaseSnapshotIdentifier, also pass the snapshot's EngineVersion. Without it, the restore requests the default version shown by convox rack resources options.