From abf60a0972ffeb7d69604f87690f6c7d228ade8c Mon Sep 17 00:00:00 2001 From: xpk Date: Tue, 13 Jun 2023 15:38:56 +0800 Subject: [PATCH] UPD: removed jsoncodeing of secret-string and use the raw value --- .../security_identity_compliance/secretsmanager-secret/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/security_identity_compliance/secretsmanager-secret/main.tf b/modules/security_identity_compliance/secretsmanager-secret/main.tf index 2287957..22cdbd0 100644 --- a/modules/security_identity_compliance/secretsmanager-secret/main.tf +++ b/modules/security_identity_compliance/secretsmanager-secret/main.tf @@ -11,7 +11,7 @@ resource "aws_secretsmanager_secret" "secret1" { resource "aws_secretsmanager_secret_version" "this" { secret_id = aws_secretsmanager_secret.secret1.id - secret_string = jsonencode({ (var.secret_description) : var.secret_value }) + secret_string = var.secret_value } data "aws_iam_policy_document" "policy-file" {