From 60c33fedaca2e0e9289d2ded64b45dbb1b3d0c05 Mon Sep 17 00:00:00 2001 From: Ruben Mennes Date: Tue, 11 Jun 2024 09:18:40 +0200 Subject: [PATCH] Update TF personas --- .infra/infra/persona/main.tf | 5 ++++- .infra/infra/persona/providers.tf | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) delete mode 100644 .infra/infra/persona/providers.tf diff --git a/.infra/infra/persona/main.tf b/.infra/infra/persona/main.tf index f2a1602..f5282a1 100644 --- a/.infra/infra/persona/main.tf +++ b/.infra/infra/persona/main.tf @@ -7,7 +7,10 @@ resource "aws_iam_access_key" "key" { } resource "aws_secretsmanager_secret" "secret" { - name = "${var.secret_prefix}${aws_iam_user.user.name}_${random_string.random_secret_postfix.result}" + name = "${var.secret_prefix}${aws_iam_user.user.name}_${random_string.random_secret_postfix.result}" + description = "Secret for ${aws_iam_user.user.name}" + recovery_window_in_days = 0 + force_overwrite_replica_secret = true } resource "aws_secretsmanager_secret_version" "secret_value" { diff --git a/.infra/infra/persona/providers.tf b/.infra/infra/persona/providers.tf deleted file mode 100644 index 015d42a..0000000 --- a/.infra/infra/persona/providers.tf +++ /dev/null @@ -1 +0,0 @@ -provider "random" {} \ No newline at end of file