我有以下代码..
data "aws_secretsmanager_secret" "db_password" {
name = "${var.db_secret}"
}
data "aws_secretsmanager_secret_version" "db_password" {
secret_id = "${data.aws_secretsmanager_secret.db_password.id}"
}
master_password = "${data.aws_secretsmanager_secret_version.db_password.secret_string}"
在这种情况下返回 secret_string
secret_string = {"Test":"TestPassword"}
如何剪切并使用秘密的 TestPassword 部分用作我的 master_password?