Skip to content

Commit fbf943c

Browse files
feat(spanner): support encryption config in google_spanner_schedule_backup resource (#12868) (#898)
[upstream:fea6363d3402f501792c381c263af41aecd45ff6] Signed-off-by: Modular Magician <[email protected]>
1 parent 496f01f commit fbf943c

File tree

2 files changed

+8
-0
lines changed
  • spanner_backup_schedule_daily_full
  • spanner_backup_schedule_daily_incremental

2 files changed

+8
-0
lines changed

spanner_backup_schedule_daily_full/main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,8 @@ resource "google_spanner_backup_schedule" "full-backup" {
3737
}
3838
// The schedule creates only full backups.
3939
full_backup_spec {}
40+
41+
encryption_config {
42+
encryption_type = "USE_DATABASE_ENCRYPTION"
43+
}
4044
}

spanner_backup_schedule_daily_incremental/main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,8 @@ resource "google_spanner_backup_schedule" "incremental-backup" {
3838
}
3939
// The schedule creates incremental backup chains.
4040
incremental_backup_spec {}
41+
42+
encryption_config {
43+
encryption_type = "GOOGLE_DEFAULT_ENCRYPTION"
44+
}
4145
}

0 commit comments

Comments
 (0)