Skip to content

Add rds skip final snapshot #97

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
5 changes: 3 additions & 2 deletions modules/aws/RDS-Aurora/rds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ resource "aws_rds_cluster" "rds_cluster" {

cluster_identifier = local.cluster_name

storage_encrypted = var.storage_encrypted
kms_key_id = var.storage_encrypted == true ? var.kms_key_id : null
skip_final_snapshot = var.skip_final_snapshot
storage_encrypted = var.storage_encrypted
kms_key_id = var.storage_encrypted == true ? var.kms_key_id : null

dynamic "scaling_configuration" {
for_each = var.enable_scaling_configuration == true && var.engine_mode == "serverless" ? [1] : []
Expand Down
5 changes: 5 additions & 0 deletions modules/aws/RDS-Aurora/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@ variable "vpc_security_group_ids" {
type = list(string)
description = "List of security group ids"
}
variable "skip_final_snapshot" {
type = bool
description = "Flag to skip final snapshot"
default = false
}
variable "storage_encrypted" {
type = bool
description = "Flag to enable storage encryption"
Expand Down