Skip to content

Commit

Permalink
Add skip final snapshot (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
minniux authored Aug 3, 2021
1 parent d52b34e commit bdfa04d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rds-replica/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ resource "aws_db_instance" "rds" {
enabled_cloudwatch_logs_exports = var.enabled_cloudwatch_logs_exports
backup_retention_period = var.backup_retention_period
auto_minor_version_upgrade = var.auto_minor_version_upgrade
skip_final_snapshot = true

tags = {
Name = length(var.name) == 0 ? "${var.project}-${var.environment}${var.tag}-rds${count.index + 1}-replica" : var.name
Expand Down

0 comments on commit bdfa04d

Please sign in to comment.