From 7d18f7be25d9a268b331a991be10bd80c0e074fe Mon Sep 17 00:00:00 2001 From: paduin Date: Wed, 21 Aug 2024 13:35:24 +0200 Subject: [PATCH 1/2] fixing copy_tags_on_snapshot change due to previous provider upgrade --- CHANGELOG.md | 4 ++++ rds.tf | 1 + variables.tf | 6 ++++++ 3 files changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cbc9c2..29cf9ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [5.0.5] - 2024-08-21 +### Fixed +- Add `copy_tags_to_snapshot` to aws_rds_cluster. + ## [5.0.4] - 2024-06-05 ### Changed - Change kiam auth method to irsa for metadata cleanup, path cleanup and scheduler apiary diff --git a/rds.tf b/rds.tf index b99bd86..654e177 100644 --- a/rds.tf +++ b/rds.tf @@ -68,4 +68,5 @@ resource "aws_db_instance" "beekeeper" { performance_insights_enabled = var.db_performance_insights_enabled final_snapshot_identifier = "${local.instance_alias}-final-snapshot-${random_id.snapshot_id.hex}" tags = var.beekeeper_tags + copy_tags_to_snapshot = var.db_copy_tags_to_snapshot } diff --git a/variables.tf b/variables.tf index 2963a83..65996e9 100644 --- a/variables.tf +++ b/variables.tf @@ -564,3 +564,9 @@ variable "slack_webhook_url" { default = "" type = string } + +variable "db_copy_tags_to_snapshot" { + description = "Copy all Cluster tags to snapshots." + type = bool + default = true +} From fa955a316dcbbdaded92f7f483e4b3ad4bebe2ee Mon Sep 17 00:00:00 2001 From: paduin Date: Wed, 21 Aug 2024 14:25:14 +0200 Subject: [PATCH 2/2] test --- rds.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rds.tf b/rds.tf index 654e177..b4dab19 100644 --- a/rds.tf +++ b/rds.tf @@ -67,6 +67,6 @@ resource "aws_db_instance" "beekeeper" { apply_immediately = var.db_apply_immediately performance_insights_enabled = var.db_performance_insights_enabled final_snapshot_identifier = "${local.instance_alias}-final-snapshot-${random_id.snapshot_id.hex}" - tags = var.beekeeper_tags copy_tags_to_snapshot = var.db_copy_tags_to_snapshot + tags = var.beekeeper_tags }