New Crossplane governance policies and Official Providers:Upbound is strengthening the Crossplane community ecosystem and making updates to the Official Provider policy
Learn More
xp/getting-started-with-gcp@v1.13.2,v1.13.1,v1.13.0,v1.12.3,v1.12.2,v1.12.1,v1.12.0,v1.11.5,v1.11.4,v1.11.3,v1.11.2,v1.11.1,v1.11.0,v1.10.4,v1.10.3,v1.10.2,v1.10.1,v1.10.0
xpostgresqlinstances.gcp.database.example.org

xpostgresqlinstances.gcp.database.example.org

xpostgresqlinstances.gcp.database.example.org
xp/getting-started-with-gcp@v1.13.2,v1.13.1,v1.13.0,v1.12.3,v1.12.2,v1.12.1,v1.12.0,v1.11.5,v1.11.4,v1.11.3,v1.11.2,v1.11.1,v1.11.0,v1.10.4,v1.10.3,v1.10.2,v1.10.1,v1.10.0xpostgresqlinstances.gcp.database.example.org
Type

Composition

Referenced XRD

XPostgreSQLInstance

Source Codegithub.com/crossplane/crossplane
Resources (1)

The following resources are composed to implement the referenced Composite Resource Definition (XRD).

Kind
Group
Version

No resources found.

YAML
kind: Composition
apiVersion: apiextensions.crossplane.io/v1
metadata:
  name: xpostgresqlinstances.gcp.database.example.org
  creationTimestamp: null
  labels:
    guide: quickstart
    provider: gcp
spec:
  compositeTypeRef:
    apiVersion: database.example.org/v1alpha1
    kind: XPostgreSQLInstance
  resources:
    - name: cloudsqlinstance
      base:
        apiVersion: database.gcp.crossplane.io/v1beta1
        kind: CloudSQLInstance
        spec:
          forProvider:
            databaseVersion: POSTGRES_12
            region: us-central1
            settings:
              dataDiskType: PD_SSD
              ipConfiguration:
                authorizedNetworks:
                  - value: 0.0.0.0/0
                ipv4Enabled: true
              tier: db-custom-1-3840
          writeConnectionSecretToRef:
            namespace: crossplane-system
      patches:
        - fromFieldPath: metadata.uid
          toFieldPath: spec.writeConnectionSecretToRef.name
          transforms:
            - type: string
              string:
                fmt: "%s-postgresql"
        - fromFieldPath: spec.parameters.storageGB
          toFieldPath: spec.forProvider.settings.dataDiskSizeGb
      connectionDetails:
        - fromConnectionSecretKey: username
        - fromConnectionSecretKey: password
        - fromConnectionSecretKey: endpoint
        - name: port
          type: FromValue
          value: "5432"
  writeConnectionSecretsToNamespace: crossplane-system
Discover the building blocks for your internal cloud platform.
© 2025 Upbound, Inc.
Solutions