Configure an AlloyDB for PostgreSQL cluster and instance

Application Design Center lets you configure clusters and instances for AlloyDB for PostgreSQL, a fully managed database service designed for demanding enterprise transactional and analytical workloads. Configurable parameters are based on the terraform-google-alloy-db Terraform module on GitHub.

Before you begin

Create a private services access configuration in a Virtual Private Cloud (VPC) network that resides in the same Google Cloud project where you create your AlloyDB instances.

For more information, see the following:

Component connections

You can connect the following components to an AlloyDB instance:

Connected component Application updates Background information
Compute Engine instance templates
  • The Compute Engine instances can connect to the AlloyDB instance.
  • The AlloyDB resource metadata information is added to the instance template.
  • The roles/alloydb.admin role is granted to the Compute Engine instance template service account.
Connection overview
Cloud Run
  • The Cloud Run service can connect to the AlloyDB instance.
  • The AlloyDB resource metadata is added to the Cloud Run environment variables.
  • The roles/alloydb.admin role is granted to the Cloud Run service account.
Connect from Cloud Run

Required configuration parameters

The following table describes the required parameters for configuring an AlloyDB cluster and a primary instance:

Parameter name Description and constraint information Background information

Project ID

The project where you want to deploy the AlloyDB instance.

Configure components

Cluster ID

The ID of the AlloyDB cluster.

Create cluster and its primary instance

Region

The location where the AlloyDB cluster is deployed. AlloyDB locations

Optional configuration parameters

The following parameters are optional. To display advanced parameters, in the Configuration area, select Show advanced fields.

Feature Parameter name Description and constraint information Background information
Primary instance Instance ID name Create a primary instance
Primary instance Display name displayName Create a primary instance
Primary instance: Database flags

Key

databaseFlags

Configure an instance's database flags

Primary instance: Database flags

Value

databaseFlags

Configure an instance's database flags

Primary instance: Labels

Key

labels

Best practices for labels

Primary instance: Labels

Value

labels

Best practices for labels

Primary instance: Annotations

Key

annotations

annotations

Primary instance: Annotations

Value

annotations

annotations

Primary instance

GCE Zone

gceZone

Regions and zones

Primary instance

Availability Type

availabilityType

Test a primary instance for high availability
Primary instance

Machine CPU Count

cpuCount Sizing and deployment recommendations
Primary instance

Machine Type

machineType

Create a primary instance
Primary instance

SSL Mode

sslMode

Configure SSL enforcement mode
Primary instance

Require Connectors

requireConnectors

Control connector enforcement
Primary instance: Query Insights Config

Query String Length

queryStringLength

About Query Insights
Primary instance: Query Insights Config

Record Application Tags

recordApplicationTags

Improve query performance using query insights
Primary instance: Query Insights Config

Record Client Address

recordClientAddress

Improve query performance using query insights
Primary instance: Query Insights Config

Query Plans Per Minute

queryPlansPerMinute

Improve query performance using query insights
Primary instance

Enable Public IP

enablePublicIP

Connect using public IP
Primary instance

Enable Outbound Public IP

enableOutboundPublicIP

Connect using public IP
Primary instance

CIDR Range

cidrRange

Public IP

Network Self Link

network

Enable private services access

Cluster Type

clusterType

Cross-region replication overview

Cluster Labels

Key

labels

Best practices for labels

Cluster Labels

Value

labels

Best practices for labels

Cluster Display Name

displayName

Create a cluster
Cluster Initial User

User

initialUser

Create a new cluster

Cluster Initial User

Password

initialUser

Create a new cluster

Skip Await Major Version Upgrade

skip_await_major_version_upgrade Database in-place major version upgrade overview

Subscription Type

subscriptionType

Free trial cluster overview

Cluster Encryption Key Name

encryptionConfig

About CMEK

Automated Backup Policy

Region

location

On-demand backup locations
Automated Backup Policy

Backup Window

backupWindow

Continuous backup and recovery
Automated Backup Policy

Enabled

enabled

Data backup and recovery overview
Automated Backup Policy: Weekly Schedule

Days of Week

daysOfWeek

Automated backup configuration attributes
Automated Backup Policy: Weekly Schedule

Start Time

startTimes

Automated backup configuration attributes
Automated Backup Policy

Quantity Based Retention Count

count

Automated backup configuration attributes
Automated Backup Policy

Time Based Retention Count

retentionPeriod

Automated backup configuration attributes
Automated Backup Policy: Labels

Key

labels

Best practices for labels

Automated Backup Policy: Labels

Value

labels

Best practices for labels

Automated Backup Policy

Backup Encryption Key Name

encryptionConfig

Backups and restoration

Continuous Backup Enable

enabled

Continuous backup and recovery

Continuous Backup Recovery Window Days

recoveryWindowDays

Continuous backup and recovery
Maintenance Update Policy: Maintenance Windows

Day

day Maintenance overview
Maintenance Update Policy: Start Time

Hours

startTime Maintenance overview

Continuous Backup Encryption Key Name

kmsKeyName

Backups and restoration
Read Pool Instances

Instance ID

name

Create a read pool instance

Read Pool Instances

Display Name

displayName

Create a read pool instance

Read Pool Instances

Node Count

nodeCount

Create a read pool instance

Read Pool Instances: Database Flags

Key

databaseFlags

Configure database flags

Read Pool Instances: Database Flags

Value

databaseFlags

Configure database flags

Read Pool Instances

Machine CPU Count

cpuCount

Create a read pool instance

Read Pool Instances

Machine Type

machineType

Create a read pool instance

Read Pool Instances

SSL Mode

sslMode

Configure SSL enforcement mode
Read Pool Instances

Require Connectors

requireConnectors

About the AlloyDB Auth Proxy
Read Pool Instances: Query Insights Config

Query String Length

queryStringLength

About Query Insights
Read Pool Instances: Query Insights Config

Record Application Tags

recordApplicationTags

Improve query performance using query insights
Read Pool Instances: Query Insights Config

Record Client Address

recordClientAddress

Improve query performance using query insights
Read Pool Instances: Query Insights Config

Query Plans Per Minute

queryPlansPerMinute

Improve query performance using query insights
Read Pool Instances

Enable Public IP

enablePublicIP

Connect using public IP
Read Pool Instances

CIDR Range

cidrRange

Public IP

Primary Cluster Name

primaryClusterName

Create a cluster and its primary instance

Allocated IP Range

allocatedIpRange

Enable private services access

Database Version

databaseVersion

Database version policies

PSC Enabled

pscEnabled

Private Service Connect overview

PSC Allowed Consumer Projects

allowed_consumer_projects

Allowed Private Service Connect projects
PSC Auto Connections

Consumer Network

consumer_network

Allowed Private Service Connect projects
PSC Auto Connections

Consumer Project

consumer_project

Allowed Private Service Connect projects

Deletion Policy

deletion_policy deletion_policy

Network Attachment Resource

networkAttachment

Network attachment
Restore Cluster: Restore Backup Source Backup Name

restoreBackupSource

Use point-in-time recovery (PITR)
Restore Cluster: Restore Continuous Backup Source Cluster

cluster

Use point-in-time recovery (PITR)
Restore Cluster: Restore Continuous Backup Source Point in Time

pointInTime

Use point-in-time recovery (PITR)