Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- S3 operations in `@cumulus/aws-client` now support optional jitter via `S3_JITTER_MAX_MS` environment variable
- Jitter is applied to: `headObject`, `putObject`, `copyObject`, `getObject`, `downloadS3File`, `promiseS3Upload`, and `multipartCopyObject`

- **CUMULUS-4218**
- Added `restore_to_point_in_time` to `cumulus-rds-tf` rds-cluster
- Added `restore_type` and `use_latest_restorable_time` variables for PITR configuration

### Changed

- **CUMULUS-4155**
Expand Down
2 changes: 2 additions & 0 deletions example/rds-cluster-tf/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ module "rds_cluster" {
enable_upgrade = var.enable_upgrade
parameter_group_family_v13 = var.parameter_group_family_v13
parameter_group_family_v17 = var.parameter_group_family_v17
restore_type = var.restore_type
use_latest_restorable_time = var.use_latest_restorable_time
}
12 changes: 12 additions & 0 deletions example/rds-cluster-tf/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,15 @@ variable "parameter_group_family_v17" {
type = string
default = "aurora-postgresql17"
}

variable "restore_type" {
description = "Type of restore to be performed."
type = string
default = "full-copy"
}

variable "use_latest_restorable_time" {
description = "Boolean for whether to set the database cluster to the latest restorable backup time."
type = bool
default = false
}
6 changes: 6 additions & 0 deletions tf-modules/cumulus-rds-tf/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ resource "aws_rds_cluster" "cumulus" {
lifecycle {
ignore_changes = [engine_version]
}

restore_to_point_in_time {
source_cluster_identifier = var.cluster_identifier
restore_type = var.restore_type
use_latest_restorable_time = var.use_latest_restorable_time
}
}

resource "aws_rds_cluster_instance" "cumulus" {
Expand Down
12 changes: 12 additions & 0 deletions tf-modules/cumulus-rds-tf/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -210,3 +210,15 @@ variable "lambda_timeouts" {
type = map(number)
default = {}
}

variable "restore_type" {
description = "Type of restore to be performed."
type = string
default = "full-copy"
}

variable "use_latest_restorable_time" {
description = "Boolean for whether to set the database cluster to the latest restorable backup time."
type = bool
default = false
}