DBaaS Postgres Cluster
Creates and manages DbaaS Postgres Cluster objects.
Manages a DbaaS PgSql Cluster.
Example Usage
Argument reference
postgres_version
- (Required)[string] The PostgreSQL version of your cluster.instances
- (Required)[int] The total number of instances in the cluster (one master and n-1 standbys)cores
- (Required)[int] The number of CPU cores per replica.ram
- (Required)[int] The amount of memory per instance in megabytes. Has to be a multiple of 1024.storage_size
- (Required)[int] The amount of storage per instance in MB. Has to be a multiple of 2048.storage_type
- (Required)[string] SSD, SSD Standard, SSD Premium, or HDD. Value "SSD" is deprecated, use the equivalent "SSD Premium" instead. This attribute is immutable(disallowed in update requests).connections
- (Required)[string] Details about the network connection for your cluster.datacenter_id
- (Required)[true] The datacenter to connect your cluster to.lan_id
- (Required)[true] The LAN to connect your cluster to.cidr
- (Required)[true] The IP and subnet for the database. Note the following unavailable IP ranges: 10.233.64.0/18, 10.233.0.0/18, 10.233.114.0/24. Please enter in the correct format like IP/Subnet, exp: 192.168.10.0/24. See Private IPs and Configuring the network.
location
- (Required)[string] The physical location where the cluster will be created. This will be where all of your instances live. Property cannot be modified after datacenter creation. Possible values are:de/fra
,de/txl
,gb/lhr
,es/vit
,us/ewr
,us/las
. This attribute is immutable(disallowed in update requests).backup_location
- (Optional)(Computed)[string] The S3 location where the backups will be stored. Possible values are:de
,eu-south-2
,eu-central-2
. This attribute is immutable (disallowed in update requests).display_name
- (Required)[string] The friendly name of your cluster.maintenance_window
- (Optional)(Computed)[string] A weekly 4 hour-long window, during which maintenance might occurtime
- (Required)[string]day_of_the_week
- (Required)[string]
credentials
- (Required)[string] Credentials for the database user to be created. This attribute is immutable(disallowed in update requests).username
- (Required)[string] The username for the initial postgres user. Some system usernames are restricted (e.g. "postgres", "admin", "standby")password
- (Required)[string]
synchronization_mode
- (Required) [string] Represents different modes of replication. Can have one of the following values: ASYNCHRONOUS, SYNCHRONOUS, STRICTLY_SYNCHRONOUS. This attribute is immutable(disallowed in update requests).from_backup
- (Optional)[string] The unique ID of the backup you want to restore. This attribute is immutable(disallowed in update requests).backup_id
- (Required)[string] The unique ID of the backup you want to restore.recovery_target_time
- (Optional)[string] If this value is supplied as ISO 8601 timestamp, the backup will be replayed up until the given timestamp. If empty, the backup will be applied completely.
dns_name
- (Computed)[string] The DNS name pointing to your cluster.
Import
Resource DbaaS Postgres Cluster can be imported using the cluster_id
, e.g.
Last updated