UPD: removed jsoncodeing of secret-string and use the raw value

This commit is contained in:
xpk 2023-06-13 15:38:56 +08:00
parent 1d112a6136
commit abf60a0972
Signed by: xpk
GPG Key ID: CD4FF6793F09AB86

View File

@ -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" {