Skip to content

Add backup, HA, and SSL configuration support for Cloud SQL#182

Merged
Cre-eD merged 4 commits intomainfrom
feature/cloudsql-backup-ha
Mar 23, 2026
Merged

Add backup, HA, and SSL configuration support for Cloud SQL#182
Cre-eD merged 4 commits intomainfrom
feature/cloudsql-backup-ha

Conversation

@Cre-eD
Copy link
Copy Markdown
Contributor

@Cre-eD Cre-eD commented Mar 23, 2026

New optional fields for gcp-cloudsql-postgres resource:

  • backupEnabled, backupStartTime, pointInTimeRecoveryEnabled
  • transactionLogRetentionDays, retainedBackups
  • availabilityType (ZONAL/REGIONAL)
  • requireSsl

All fields are optional and nil-safe. When not set, Cloud SQL defaults apply (no change to existing behavior).

Example server.yaml:
postgres:
type: gcp-cloudsql-postgres
config:
backupEnabled: true
backupStartTime: '02:00'
pointInTimeRecoveryEnabled: true
transactionLogRetentionDays: 7
retainedBackups: 30
availabilityType: REGIONAL
requireSsl: true

New optional fields for gcp-cloudsql-postgres resource:
- backupEnabled, backupStartTime, pointInTimeRecoveryEnabled
- transactionLogRetentionDays, retainedBackups
- availabilityType (ZONAL/REGIONAL)
- requireSsl

All fields are optional and nil-safe. When not set, Cloud SQL
defaults apply (no change to existing behavior).

Example server.yaml:
  postgres:
    type: gcp-cloudsql-postgres
    config:
      backupEnabled: true
      backupStartTime: '02:00'
      pointInTimeRecoveryEnabled: true
      transactionLogRetentionDays: 7
      retainedBackups: 30
      availabilityType: REGIONAL
      requireSsl: true
@Cre-eD Cre-eD requested a review from smecsia March 23, 2026 12:58
Cre-eD added 3 commits March 23, 2026 17:08
…serve IP config

- Validate AvailabilityType is ZONAL or REGIONAL (error early)
- Use SslMode (Pulumi GCP SDK v8) instead of deprecated RequireSsl
- Preserve Ipv4Enabled when setting SSL to avoid wiping IP config
- Simplify AvailabilityType expression
@Cre-eD Cre-eD merged commit 580f6ef into main Mar 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants