From d84e72e7a06d124cee7fd025fd7b8ef6dc2d7a4b Mon Sep 17 00:00:00 2001 From: Andre Wlodkovski Date: Wed, 3 Apr 2024 18:32:49 -0300 Subject: [PATCH] Force replace AWS Secret on Terraform --- terraform/main.tf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/terraform/main.tf b/terraform/main.tf index 5e328b8..f9974b5 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -273,6 +273,9 @@ resource "aws_db_instance" "authentication_db" { resource "aws_secretsmanager_secret" "db_secret" { name = "${var.db_name}-${var.infra_env}-secret" + recovery_window_in_days = 0 + force_overwrite_replica_secret = true + tags = { "Environment" = var.infra_env "Name" = "${var.db_name}-${var.infra_env}-secret"