Skip to content

Commit

Permalink
fix(DMVP-2690): Added kms key support
Browse files Browse the repository at this point in the history
  • Loading branch information
Julieta Aghamyan committed Sep 18, 2023
1 parent ac4f7ad commit d3ceac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/secret/secret.tf
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
resource "aws_secretsmanager_secret" "secret" {
name = var.name
recovery_window_in_days = var.recovery_window_in_days
kms_key_id = var.kms_key_id
}

resource "aws_secretsmanager_secret_version" "value" {
count = var.value == null ? 0 : 1

secret_id = aws_secretsmanager_secret.secret.id
secret_string = jsonencode(var.value)
kms_key_id = var.kms_key_id
}

0 comments on commit d3ceac6

Please sign in to comment.