Skip to content

Commit

Permalink
Force replace AWS Secret on Terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlod committed Apr 3, 2024
1 parent d79c44e commit d84e72e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d84e72e

Please sign in to comment.