Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
56ae216
Add postgres_project resource support for DABs
pietern Jan 26, 2026
8c985be
Add postgres_branch resource support for DABs
pietern Jan 26, 2026
ba447dc
Add postgres_endpoint resource support for DABs
pietern Jan 26, 2026
36d5689
Add acceptance tests for postgres branches and endpoints immutability
pietern Jan 27, 2026
62abddd
Flatten spec field for postgres resources to match DAB conventions
pietern Jan 27, 2026
fffa0c9
Fix postgres resource name field resolution in direct engine
pietern Jan 27, 2026
c2e0a29
Fix Terraform conversion for postgres resources
pietern Jan 27, 2026
1ba6c4b
Add duration.Duration type support in dyn/convert
pietern Jan 27, 2026
8a0aae8
Update postgres acceptance tests with request validation
pietern Jan 27, 2026
13a2c6a
Add postgres handlers to testserver for acceptance tests
pietern Jan 28, 2026
fc43b93
Wait for postgres endpoint reconciliation to complete
pietern Jan 28, 2026
85ac829
Update postgres testserver to match real API response format
pietern Jan 28, 2026
408a4fe
Update acceptance test outputs for refschema and sql_warehouses
pietern Jan 28, 2026
ca6f0fa
Add no_drift acceptance tests for postgres resources
pietern Jan 28, 2026
c9c0879
Add support for SDK native types in dyn conversion
pietern Jan 28, 2026
03301b6
Add end-to-end tests for SDK native types using postgres service types
pietern Jan 29, 2026
f9c72c3
Fix linter issues in SDK native types test
pietern Jan 29, 2026
e58db24
Address PR feedback on SDK native types implementation
pietern Jan 29, 2026
ee98bea
Use .id instead of .name for parent references in postgres tests
pietern Jan 29, 2026
2e98c02
Remove redundant SDK native types tests
pietern Jan 29, 2026
50340a0
Add acceptance test for updating postgres project display_name
pietern Jan 29, 2026
39a483c
Consolidate SDK native types edge cases into table tests
pietern Jan 29, 2026
8a12be5
Merge remote-tracking branch 'origin/main' into lakebase-v2
pietern Jan 29, 2026
a301a46
Ignore remote spec changes for postgres resources
pietern Jan 29, 2026
1a955ab
Add acceptance test for updating postgres branch is_protected
pietern Jan 29, 2026
94a09f0
Add acceptance test for updating postgres endpoint autoscaling
pietern Jan 29, 2026
04ac494
Update postgres_projects/update-display-name test with focused plan o…
pietern Jan 29, 2026
7befcfa
Fix sync warning in postgres acceptance tests
pietern Jan 29, 2026
22bc44e
Use precise update_mask for postgres resource updates
pietern Jan 29, 2026
76a758e
Consolidate postgres acceptance test Repl patterns to reduce duplication
pietern Jan 29, 2026
2ca2aa8
Add unit tests for postgres project Terraform converter
pietern Jan 29, 2026
e6cf316
Add unit tests for postgres branch Terraform converter
pietern Jan 29, 2026
1de03ea
Add unit tests for postgres endpoint Terraform converter
pietern Jan 29, 2026
b1605f5
Enable postgres acceptance tests for terraform engine
pietern Jan 29, 2026
ba89ca3
Map postgres autoscaling fields to float64 in bundle TF schema
pietern Jan 29, 2026
7a49e6c
Merge branch 'tf-float' into lakebase-v2
pietern Jan 29, 2026
617baf0
Apply golangci-lint fixes
pietern Jan 29, 2026
df1a0da
Update postgres tests for 0.5 CU values and engine-specific handling
pietern Jan 29, 2026
8c1cea8
Enable postgres terraform acceptance tests for branches and endpoints
pietern Jan 29, 2026
b228344
Enable terraform engine for postgres_projects update-display-name test
pietern Jan 29, 2026
aae67e5
Enable terraform engine for postgres_endpoints recreate-on-endpoint-t…
pietern Jan 29, 2026
0bd60c0
Enable terraform engine for postgres_branches update-protected test
pietern Jan 29, 2026
a6eac26
Enable terraform engine for postgres_endpoints update-autoscaling test
pietern Jan 29, 2026
34b07e2
Enable terraform engine for postgres without-*-id validation tests
pietern Jan 29, 2026
af3269c
Enable terraform engine for postgres recreate-on-id-change tests
pietern Jan 29, 2026
071ecf6
Merge remote-tracking branch 'origin/tf-float' into lakebase-v2
pietern Jan 29, 2026
c674330
wsfix
pietern Jan 29, 2026
25059ae
Update postgres acceptance tests configuration
pietern Jan 29, 2026
d37b76a
Add postgres resources to statemgmt state_load tests
pietern Jan 29, 2026
496bd0e
Fix unit tests for postgres resources
pietern Jan 29, 2026
3044c14
Eliminate type switches in roundtrip tests
pietern Jan 30, 2026
a7e5497
Inline equality assertions into roundtrip tests
pietern Jan 30, 2026
07bedda
Simplify edge case tests by removing fake table tests
pietern Jan 30, 2026
828feb7
Add time_invalid_format test case for SDK native types
pietern Jan 30, 2026
41520d5
Clean up SDK native types test file
pietern Jan 30, 2026
df65828
Remove verbose comments from SDK native types tests
pietern Jan 30, 2026
ebf1047
Merge remote-tracking branch 'origin/sdk-duration-type' into lakebase-v2
pietern Jan 30, 2026
b358ec2
Merge remote-tracking branch 'origin/main' into lakebase-v2
pietern Jan 30, 2026
a64c4b7
Convert SDK native types tests to table-driven format
pietern Feb 2, 2026
4346d43
Inline SDK native type checks and remove helper function
pietern Feb 2, 2026
0dffcf9
Combine nil value tests into single test with subtests
pietern Feb 2, 2026
631ef84
Add variable reference support for SDK native types
pietern Feb 2, 2026
f6efb81
Merge remote-tracking branch 'origin/sdk-duration-type' into lakebase-v2
pietern Feb 2, 2026
6402838
Merge remote-tracking branch 'origin/main' into lakebase-v2
pietern Feb 2, 2026
2503a80
Allow run_as for Postgres resources
pietern Feb 2, 2026
0728a63
Remove TODO comments for Postgres permissions
pietern Feb 2, 2026
3ad3f29
Disable URL generation for Postgres resources
pietern Feb 2, 2026
bc03f7a
Remove comment from PostgresProject.GetName
pietern Feb 2, 2026
8b18e11
Update comment: Postgres resources use 'name' not 'uid'
pietern Feb 2, 2026
9a30557
Use reflection to get spec field names for Postgres resources
pietern Feb 2, 2026
76f38f0
Add timeout for Postgres endpoint reconciliation operations
pietern Feb 2, 2026
efafb00
Back out custom libs/dyn/convert changes
pietern Feb 2, 2026
85fb3e8
Fix exhaustruct linter issues in Postgres resources
pietern Feb 2, 2026
afa0eb9
Merge remote-tracking branch 'origin/main' into lakebase-v2
pietern Feb 2, 2026
0055aca
Fix Postgres spec field access in dresources test
pietern Feb 2, 2026
7dd6820
Regenerate
pietern Feb 2, 2026
2d29ed0
Add changelog entry for Lakebase resources support
pietern Feb 2, 2026
55eecf7
Remove duplicate Postgres resource annotations from overrides file
pietern Feb 2, 2026
477d014
Reorder fields and clean up Postgres resource state structs
pietern Feb 2, 2026
c4564d9
Add ParsePostgresName helper for extracting IDs from resource names
pietern Feb 3, 2026
f46ad98
Use empty spec structs in RemapState for correct field-level diffing
pietern Feb 3, 2026
9066657
Merge remote-tracking branch 'origin/main' into lakebase-v2
pietern Feb 3, 2026
97124b4
Add postgres resources to resources.yml
pietern Feb 3, 2026
75c74f9
Update the no_drift test
pietern Feb 3, 2026
ecdc08b
Fix migration test for postgres resources
pietern Feb 3, 2026
45710a5
Remove CloudSlow flag from postgres resource acceptance tests
pietern Feb 3, 2026
95066af
Rename
pietern Feb 3, 2026
8c4ad10
Show "(not available)" for deployed resources without URLs
pietern Feb 3, 2026
0ce5d85
Remove unnecessary bash shebangs from postgres acceptance test scripts
pietern Feb 3, 2026
c26f823
Add plan summaries to postgres update acceptance test outputs
pietern Feb 3, 2026
9ca9767
Rename postgres update test directories to use underscores
pietern Feb 3, 2026
375ebf3
Rename postgres without test directories to use underscores
pietern Feb 3, 2026
1ed52e0
Rename recreate tests
pietern Feb 3, 2026
7d8745e
Revert "Show "(not available)" for deployed resources without URLs"
pietern Feb 3, 2026
7d26bdd
Merge remote-tracking branch 'origin/main' into lakebase-v2
pietern Feb 4, 2026
c8d1708
Include postgres resources in apitypes.yml
pietern Feb 4, 2026
ee5336b
Fix generated field behaviors for postgres resources
pietern Feb 4, 2026
67e8d85
Update outputs
pietern Feb 4, 2026
f6c4af2
Add required field checks for postgres resource IDs
pietern Feb 4, 2026
5c5c15e
Drop additional get on deleted endpoint (not done in other tests either)
pietern Feb 4, 2026
58199e1
Include TraceId for not found errors
pietern Feb 4, 2026
0f339d2
Remove timing-dependent logical_size_bytes from branch test output
pietern Feb 4, 2026
c54c5e6
Add no_expiry to postgres branch configs in migrate tests
pietern Feb 4, 2026
2dc07d0
Use ignore_remote_changes config in CRUD test assertions
pietern Feb 4, 2026
7600139
direct: Use ignore_remote_changes in CRUD test assertions
pietern Feb 4, 2026
b325350
Flatten postgres resource spec fields into config structs
pietern Feb 4, 2026
aeab3c8
Merge remote-tracking branch 'origin/testcrud-ignore-remote' into lak…
pietern Feb 4, 2026
dfb6934
Remove manual ignore_remote_changes handling from CRUD test
pietern Feb 4, 2026
9c9264b
Remove unused collectUpdatePaths function
pietern Feb 4, 2026
a275fdb
Filter logical_size_bytes from plan output in update_protected test
pietern Feb 4, 2026
50b7da3
Schema order
pietern Feb 4, 2026
5c21360
Validation order
pietern Feb 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

### Bundles

* Add support for Lakebase resources (postgres_projects, postgres_branches, postgres_endpoints) ([#4423](https://github.com/databricks/cli/pull/4423))
* Add missing values to SchemaGrantPrivilege enum ([#4380](https://github.com/databricks/cli/pull/4380))
* Added support for UC catalogs (only in direct mode) ([#4342](https://github.com/databricks/cli/pull/4342))
* engine/direct: Fix updates to fields being ignored for database_catalogs, synced_database_tables (([#4388](https://github.com/databricks/cli/pull/4388)))
Expand Down
3 changes: 2 additions & 1 deletion acceptance/bin/read_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def get_id_terraform(filename, name):
if r_name == name:
for inst in r["instances"]:
attribute_values = inst.get("attributes") or {}
return attribute_values.get("id")
# Try "id" first, fall back to "name" for postgres resources
return attribute_values.get("id") or attribute_values.get("name")

print(f"Cannot find resource with {name=}. Available: {available}", file=sys.stderr)

Expand Down
14 changes: 14 additions & 0 deletions acceptance/bundle/invariant/configs/postgres_branch.yml.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
bundle:
name: test-bundle-$UNIQUE_NAME

resources:
postgres_projects:
project:
project_id: test-pg-project-$UNIQUE_NAME
display_name: Test Postgres Project

postgres_branches:
foo:
parent: ${resources.postgres_projects.project.name}
branch_id: test-branch-$UNIQUE_NAME
no_expiry: true
20 changes: 20 additions & 0 deletions acceptance/bundle/invariant/configs/postgres_endpoint.yml.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
bundle:
name: test-bundle-$UNIQUE_NAME

resources:
postgres_projects:
project:
project_id: test-pg-project-$UNIQUE_NAME
display_name: Test Postgres Project

postgres_branches:
branch:
parent: ${resources.postgres_projects.project.name}
branch_id: test-branch-$UNIQUE_NAME
no_expiry: true

postgres_endpoints:
foo:
parent: ${resources.postgres_branches.branch.name}
endpoint_id: test-endpoint-$UNIQUE_NAME
endpoint_type: ENDPOINT_TYPE_READ_WRITE
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
bundle:
name: test-bundle-$UNIQUE_NAME

resources:
postgres_projects:
foo:
project_id: test-pg-project-$UNIQUE_NAME
display_name: Test Postgres Project
2 changes: 1 addition & 1 deletion acceptance/bundle/invariant/migrate/out.test.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion acceptance/bundle/invariant/no_drift/out.test.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions acceptance/bundle/invariant/test.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ EnvMatrix.INPUT_CONFIG = [
"model.yml.tmpl",
"model_serving_endpoint.yml.tmpl",
"pipeline.yml.tmpl",
"postgres_branch.yml.tmpl",
"postgres_endpoint.yml.tmpl",
"postgres_project.yml.tmpl",
"registered_model.yml.tmpl",
"schema.yml.tmpl",
"secret_scope.yml.tmpl",
Expand Down
125 changes: 125 additions & 0 deletions acceptance/bundle/refschema/out.fields.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3593,6 +3593,131 @@ resources.pipelines.*.permissions.permissions[*].group_name string ALL
resources.pipelines.*.permissions.permissions[*].permission_level iam.PermissionLevel ALL
resources.pipelines.*.permissions.permissions[*].service_principal_name string ALL
resources.pipelines.*.permissions.permissions[*].user_name string ALL
resources.postgres_branches.*.branch_id string INPUT STATE
resources.postgres_branches.*.create_time *time.Time REMOTE
resources.postgres_branches.*.expire_time *time.Time INPUT STATE
resources.postgres_branches.*.id string INPUT
resources.postgres_branches.*.is_protected bool INPUT STATE
resources.postgres_branches.*.lifecycle resources.Lifecycle INPUT
resources.postgres_branches.*.lifecycle.prevent_destroy bool INPUT
resources.postgres_branches.*.modified_status string INPUT
resources.postgres_branches.*.name string REMOTE
resources.postgres_branches.*.no_expiry bool INPUT STATE
resources.postgres_branches.*.parent string ALL
resources.postgres_branches.*.source_branch string INPUT STATE
resources.postgres_branches.*.source_branch_lsn string INPUT STATE
resources.postgres_branches.*.source_branch_time *time.Time INPUT STATE
resources.postgres_branches.*.spec *postgres.BranchSpec REMOTE
resources.postgres_branches.*.spec.expire_time *time.Time REMOTE
resources.postgres_branches.*.spec.is_protected bool REMOTE
resources.postgres_branches.*.spec.no_expiry bool REMOTE
resources.postgres_branches.*.spec.source_branch string REMOTE
resources.postgres_branches.*.spec.source_branch_lsn string REMOTE
resources.postgres_branches.*.spec.source_branch_time *time.Time REMOTE
resources.postgres_branches.*.spec.ttl *duration.Duration REMOTE
resources.postgres_branches.*.status *postgres.BranchStatus REMOTE
resources.postgres_branches.*.status.current_state postgres.BranchStatusState REMOTE
resources.postgres_branches.*.status.default bool REMOTE
resources.postgres_branches.*.status.expire_time *time.Time REMOTE
resources.postgres_branches.*.status.is_protected bool REMOTE
resources.postgres_branches.*.status.logical_size_bytes int64 REMOTE
resources.postgres_branches.*.status.pending_state postgres.BranchStatusState REMOTE
resources.postgres_branches.*.status.source_branch string REMOTE
resources.postgres_branches.*.status.source_branch_lsn string REMOTE
resources.postgres_branches.*.status.source_branch_time *time.Time REMOTE
resources.postgres_branches.*.status.state_change_time *time.Time REMOTE
resources.postgres_branches.*.ttl *duration.Duration INPUT STATE
resources.postgres_branches.*.uid string REMOTE
resources.postgres_branches.*.update_time *time.Time REMOTE
resources.postgres_branches.*.url string INPUT
resources.postgres_endpoints.*.autoscaling_limit_max_cu float64 INPUT STATE
resources.postgres_endpoints.*.autoscaling_limit_min_cu float64 INPUT STATE
resources.postgres_endpoints.*.create_time *time.Time REMOTE
resources.postgres_endpoints.*.disabled bool INPUT STATE
resources.postgres_endpoints.*.endpoint_id string INPUT STATE
resources.postgres_endpoints.*.endpoint_type postgres.EndpointType INPUT STATE
resources.postgres_endpoints.*.id string INPUT
resources.postgres_endpoints.*.lifecycle resources.Lifecycle INPUT
resources.postgres_endpoints.*.lifecycle.prevent_destroy bool INPUT
resources.postgres_endpoints.*.modified_status string INPUT
resources.postgres_endpoints.*.name string REMOTE
resources.postgres_endpoints.*.no_suspension bool INPUT STATE
resources.postgres_endpoints.*.parent string ALL
resources.postgres_endpoints.*.settings *postgres.EndpointSettings INPUT STATE
resources.postgres_endpoints.*.settings.pg_settings map[string]string INPUT STATE
resources.postgres_endpoints.*.settings.pg_settings.* string INPUT STATE
resources.postgres_endpoints.*.spec *postgres.EndpointSpec REMOTE
resources.postgres_endpoints.*.spec.autoscaling_limit_max_cu float64 REMOTE
resources.postgres_endpoints.*.spec.autoscaling_limit_min_cu float64 REMOTE
resources.postgres_endpoints.*.spec.disabled bool REMOTE
resources.postgres_endpoints.*.spec.endpoint_type postgres.EndpointType REMOTE
resources.postgres_endpoints.*.spec.no_suspension bool REMOTE
resources.postgres_endpoints.*.spec.settings *postgres.EndpointSettings REMOTE
resources.postgres_endpoints.*.spec.settings.pg_settings map[string]string REMOTE
resources.postgres_endpoints.*.spec.settings.pg_settings.* string REMOTE
resources.postgres_endpoints.*.spec.suspend_timeout_duration *duration.Duration REMOTE
resources.postgres_endpoints.*.status *postgres.EndpointStatus REMOTE
resources.postgres_endpoints.*.status.autoscaling_limit_max_cu float64 REMOTE
resources.postgres_endpoints.*.status.autoscaling_limit_min_cu float64 REMOTE
resources.postgres_endpoints.*.status.current_state postgres.EndpointStatusState REMOTE
resources.postgres_endpoints.*.status.disabled bool REMOTE
resources.postgres_endpoints.*.status.endpoint_type postgres.EndpointType REMOTE
resources.postgres_endpoints.*.status.hosts *postgres.EndpointHosts REMOTE
resources.postgres_endpoints.*.status.hosts.host string REMOTE
resources.postgres_endpoints.*.status.pending_state postgres.EndpointStatusState REMOTE
resources.postgres_endpoints.*.status.settings *postgres.EndpointSettings REMOTE
resources.postgres_endpoints.*.status.settings.pg_settings map[string]string REMOTE
resources.postgres_endpoints.*.status.settings.pg_settings.* string REMOTE
resources.postgres_endpoints.*.status.suspend_timeout_duration *duration.Duration REMOTE
resources.postgres_endpoints.*.suspend_timeout_duration *duration.Duration INPUT STATE
resources.postgres_endpoints.*.uid string REMOTE
resources.postgres_endpoints.*.update_time *time.Time REMOTE
resources.postgres_endpoints.*.url string INPUT
resources.postgres_projects.*.create_time *time.Time REMOTE
resources.postgres_projects.*.default_endpoint_settings *postgres.ProjectDefaultEndpointSettings INPUT STATE
resources.postgres_projects.*.default_endpoint_settings.autoscaling_limit_max_cu float64 INPUT STATE
resources.postgres_projects.*.default_endpoint_settings.autoscaling_limit_min_cu float64 INPUT STATE
resources.postgres_projects.*.default_endpoint_settings.no_suspension bool INPUT STATE
resources.postgres_projects.*.default_endpoint_settings.pg_settings map[string]string INPUT STATE
resources.postgres_projects.*.default_endpoint_settings.pg_settings.* string INPUT STATE
resources.postgres_projects.*.default_endpoint_settings.suspend_timeout_duration *duration.Duration INPUT STATE
resources.postgres_projects.*.display_name string INPUT STATE
resources.postgres_projects.*.history_retention_duration *duration.Duration INPUT STATE
resources.postgres_projects.*.id string INPUT
resources.postgres_projects.*.lifecycle resources.Lifecycle INPUT
resources.postgres_projects.*.lifecycle.prevent_destroy bool INPUT
resources.postgres_projects.*.modified_status string INPUT
resources.postgres_projects.*.name string REMOTE
resources.postgres_projects.*.pg_version int INPUT STATE
resources.postgres_projects.*.project_id string INPUT STATE
resources.postgres_projects.*.spec *postgres.ProjectSpec REMOTE
resources.postgres_projects.*.spec.default_endpoint_settings *postgres.ProjectDefaultEndpointSettings REMOTE
resources.postgres_projects.*.spec.default_endpoint_settings.autoscaling_limit_max_cu float64 REMOTE
resources.postgres_projects.*.spec.default_endpoint_settings.autoscaling_limit_min_cu float64 REMOTE
resources.postgres_projects.*.spec.default_endpoint_settings.no_suspension bool REMOTE
resources.postgres_projects.*.spec.default_endpoint_settings.pg_settings map[string]string REMOTE
resources.postgres_projects.*.spec.default_endpoint_settings.pg_settings.* string REMOTE
resources.postgres_projects.*.spec.default_endpoint_settings.suspend_timeout_duration *duration.Duration REMOTE
resources.postgres_projects.*.spec.display_name string REMOTE
resources.postgres_projects.*.spec.history_retention_duration *duration.Duration REMOTE
resources.postgres_projects.*.spec.pg_version int REMOTE
resources.postgres_projects.*.status *postgres.ProjectStatus REMOTE
resources.postgres_projects.*.status.branch_logical_size_limit_bytes int64 REMOTE
resources.postgres_projects.*.status.default_endpoint_settings *postgres.ProjectDefaultEndpointSettings REMOTE
resources.postgres_projects.*.status.default_endpoint_settings.autoscaling_limit_max_cu float64 REMOTE
resources.postgres_projects.*.status.default_endpoint_settings.autoscaling_limit_min_cu float64 REMOTE
resources.postgres_projects.*.status.default_endpoint_settings.no_suspension bool REMOTE
resources.postgres_projects.*.status.default_endpoint_settings.pg_settings map[string]string REMOTE
resources.postgres_projects.*.status.default_endpoint_settings.pg_settings.* string REMOTE
resources.postgres_projects.*.status.default_endpoint_settings.suspend_timeout_duration *duration.Duration REMOTE
resources.postgres_projects.*.status.display_name string REMOTE
resources.postgres_projects.*.status.history_retention_duration *duration.Duration REMOTE
resources.postgres_projects.*.status.owner string REMOTE
resources.postgres_projects.*.status.pg_version int REMOTE
resources.postgres_projects.*.status.synthetic_storage_size_bytes int64 REMOTE
resources.postgres_projects.*.uid string REMOTE
resources.postgres_projects.*.update_time *time.Time REMOTE
resources.postgres_projects.*.url string INPUT
resources.quality_monitors.*.assets_dir string ALL
resources.quality_monitors.*.baseline_table_name string ALL
resources.quality_monitors.*.custom_metrics []catalog.MonitorMetric ALL
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
bundle:
name: deploy-postgres-branch-$UNIQUE_NAME

sync:
paths: []

resources:
postgres_projects:
my_project:
project_id: test-pg-proj-$UNIQUE_NAME
display_name: "Test Project for Branch"
pg_version: 16
history_retention_duration: "604800s"
default_endpoint_settings:
autoscaling_limit_min_cu: 0.5
autoscaling_limit_max_cu: 4
suspend_timeout_duration: "300s"

postgres_branches:
main:
parent: ${resources.postgres_projects.my_project.id}
branch_id: main
no_expiry: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"method": "POST",
"path": "/api/2.0/postgres/projects",
"q": {
"project_id": "test-pg-proj-[UNIQUE_NAME]"
},
"body": {
"spec": {
"default_endpoint_settings": {
"autoscaling_limit_max_cu": 4,
"autoscaling_limit_min_cu": 0.5,
"suspend_timeout_duration": "300s"
},
"display_name": "Test Project for Branch",
"history_retention_duration": "604800s",
"pg_version": 16
}
}
}
{
"method": "POST",
"path": "/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]/branches",
"q": {
"branch_id": "main"
},
"body": {
"spec": {
"no_expiry": true
}
}
}
{
"method": "GET",
"path": "/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]/branches/main"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"method": "POST",
"path": "/api/2.0/postgres/projects",
"q": {
"project_id": "test-pg-proj-[UNIQUE_NAME]"
},
"body": {
"spec": {
"default_endpoint_settings": {
"autoscaling_limit_max_cu": 4,
"autoscaling_limit_min_cu": 0.5,
"suspend_timeout_duration": "300s"
},
"display_name": "Test Project for Branch",
"history_retention_duration": "604800s",
"pg_version": 16
}
}
}
{
"method": "POST",
"path": "/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]/branches",
"q": {
"branch_id": "main"
},
"body": {
"parent": "projects/test-pg-proj-[UNIQUE_NAME]",
"spec": {
"no_expiry": true
}
}
}
{
"method": "GET",
"path": "/api/2.0/postgres/projects/test-pg-proj-[UNIQUE_NAME]/branches/main"
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading